Backup module |
ui.ycp |
|
|
This module has an unstable interface. |
Function periodically checks the free space
Wait for output from subprocess or user action. If user press `abort button, then subprocess is terminated.
- Parameters:
-
wait Delay in miliseconds between user action checks (if no output from subprocess is available) abort_question Symbol for AbortConfirmation function - which dialog will be displayed if Abort button is pressed
- Return value:
-
Pressed button id or nil if some data is ready from subprocess.
Function for installing packages
- Parameters:
-
packages
Update widget status in the dialog. Enable/disable widget according to checkbox/combobox value.
Refresh widget states in the location dialog
Ask whether archive can be overwritten if it already exists
- Return value:
-
true when archive can be overwritten, nil when an error occured (e.g. NFS mount failed)
Display dialog for automatic backup - set time when backup module will be started at background with current selected profile.
- Return value:
-
User input value
Refresh widget status (enable/disable) in the displayed dialog.
- Parameters:
-
enable_archive_type if true enable archive selection combo box and option push button, select "archive" radio button. If enable_archive_type is false then disbale widgets, select "only list" radio button.
Dialog asks for aborting the new profile creation, If aborted, profile is deleted and true returned.
- Parameters:
-
profile_name
- Return value:
-
whether `abort` meaning is returned
Dialog for setting archive options
- Return value:
-
Symbol for wizard sequencer - pressed button
Setting multi volume archive options
- Return value:
-
Symbol for wizard sequencer - pressed button
Dialog for setting backup options
- Return value:
-
Symbol for wizard sequencer - pressed button
System area backup options
- Return value:
-
Symbol for wizard sequencer - pressed button
Check whether there is enough free space.
- Parameters:
-
required required space in kB available required space in kB target_type selected target archive type
- Return value:
-
true = there is enough free space, false = not enough free space, nil = may be not enough space (compression is used, impossible to tell exactly)
Display warning dialog - there is (may) not enough free space in the directory. The dialog is not displayed when cron mode is active (there is no real UI).
- Parameters:
-
fits if true no dialog is displayed, if false display "there is no space", if nil display "there may not be space" dir directory
- Return value:
-
false = abort backup
Check available free space and decide whether archive will fit
- Parameters:
-
found_size total size of found files in bytes tmp_dir selected temporary directory target_dir target archive directory target_type target archive type
- Return value:
-
true = archive fits, false = it doesn't fit, nil = may not fit (compression is used, there is no guarantee that archive will fit but it can be possible if compression ratio will be enough high
Sets dialog contents - Searching for Modified Files
- Parameters:
-
total_packages
Initializes variables before the SearchingModifiedDialog
Takes care about installed packages
not sure
Reads list of packages files, installed packages
Function sets the dialog contents before searching files...
Display progress of searching modified files in packages
- Return value:
-
Symbol for wizard sequencer - pressed button
Display found files, user can select files to backup
- Return value:
-
Symbol for wizard sequencer - pressed button
Display progress of creating archive
- Return value:
-
Symbol for wizard sequencer - pressed button
Allow user to enter a new profile name. If the profile already exists, it allows to replace it. Allows to rename current profile if current_name in not nil or "".
- Parameters:
-
current_name
- Return value:
-
the name for the new profile, "" for cancel
Display backup summary
- Return value:
-
Symbol for wizard sequencer - pressed button
Display dialog with expert options (e.g. system area backup, temporary location...)
- Return value:
-
user input - widget ID
Displays a popup dialog asking for new name for the current profile. If nil returned, no redraw is needed, no changes are done.
- Parameters:
-
current_name
Dialog for selection of a profile before backup
- Return value:
-
Symbol for wizard sequencer - pressed button
Choose the next step - start searching or return to the profile dialog.
- Return value:
-
Symbol for wizard sequencer - `next for searching, `next2 for return to profile dialog
Directory selection dialog
- Parameters:
-
label dialog label dir start directory
- Return value:
-
result $[ "input" : symbol (user input, `ok or `cancel), "dir" : string (selected directory) ];
Convert size in bytes to B, kiB, kB, MiB or MB
- Parameters:
-
sz size in bytes
- Return value:
-
map $[ "string" : string (textual representation), "size" : integer (value), "unit" : symbol (unit of the value) ]
Convert size description to string
- Parameters:
-
s volume size user_size user defined size
- Return value:
-
result
Convert list of strings to list of items
- Parameters:
-
start_id identification of the first item type description of item input input
- Return value:
-
result
Create contstraints table content, add directories, regular expressions and file systems to exclude
- Return value:
-
list of items
Dialog for setting excluded directories, file systems and reg. expressions
- Return value:
-
Symbol for wizard sequencer - pressed button