Backup module |
Backup.ycp |
|
|
This module has an unstable interface. This module is for internal use only. |
Return capacity of required medium
- Parameters:
-
media Medium descriptions m Identification of required medium
- Return value:
-
Size of medium in bytes
Return backup_search.pl script parameters according to state of variables
- Return value:
-
String with command line parameters
Pre-backup function - mount NFS share if required
- Return value:
-
true on success
Post-backup function - unmount mounted NFS share
- Return value:
-
true on success
Return backup_search.pl script parameters according to state of variables
- Parameters:
-
file_list Where is list of files to backup stored file_comment Where is comment stored
- Return value:
-
String with command line parameters
Exclude file systems without device
Write autoinstallation profile to file autoinst.xml to the same directory as archive
- Parameters:
-
volumes list of created archives (it is written to the XML profile as restoration source)
- Return value:
-
map $[ "result" : boolean (true on success), "profile" : string (profile file name) ]
Parse cron file
- Parameters:
-
filename File to parse
- Return value:
-
parsed values: $["auto":boolean, "day":integer, "hour":integer, "minute":integer, "weekday":integer, "every":symbol] or empty map if parse error occured
Parse all /etc/cron.d/yast2-backup-* files and update profiles
Read backup profiles from file, do not set any global settings, just
- Return value:
-
true if there are some profiles available
Create cron file content for selected profile.
- Parameters:
-
profilename Name of the profile
- Return value:
-
Cron content or empty string if profile has disabled automatic start
Write cron settings from profiles to /etc/cron.d/yast2-backup-* files
Write the backup profiles to a file - hardcoded configuration_filename.
- Return value:
-
true if the write operation was successful.
Take the current profile information and store it into a given profile. If the profile already exists, it will be overwritten.
- Parameters:
-
profile_name name of a profile to be stored into
Restore the global settings from a given backup profile.
- Parameters:
-
profile_name name of a profile to be used
- Return value:
-
If the name of the profile cannot be found, return false, otherwise return true.
Restore the default global settings.
Get a sorted list of profile names currently available.
- Return value:
-
the list of strings (possibly empty).
Create description of automatic backup.
- Parameters:
-
profilename Name of the profile
- Return value:
-
description string or empty string if profile has disabled automatic start
Helper function to extract the list of currently available profiles
- Return value:
-
List of item used in the table widget
Remove given profile.
- Parameters:
-
profile_name name of a profile to be removed remove_cronfile
- Return value:
-
If the name of the profile cannot be found, return false, otherwise return true.
Try to detect all removable devices present in the system
- Parameters:
-
only_writable return only writable devices (e.g. exclude CD-ROMs)
- Return value:
-
Removable devices info
Read all packages available on the installation sources
Returns detected mount points
- Return value:
-
detected mount points
Returns local archive name (required if NFS target is used)
- Return value:
-
local archive name
Writes file using the .backup.file_append SCR agent. This file is accepted by backup_archive.pl script. Used global variables: selected_files, backup_files.
- Return value:
-
with keys "sel_files" (integer - number of selected files), "sel_packages" (integer: number of selected packages), "ret_file_list_stored" (boolean: whether the filelist has been completely stored)
Remove and/or rename old existing single archives
- Parameters:
-
name Archive name max Maximum count of existing archives
- Return value:
-
result
Remove and/or rename old existing multivolume archives
- Parameters:
-
name Archive name max Maximum count of existing archives
- Return value:
-
result
Remove and/or rename old existing archives
- Parameters:
-
name Archive name max Maximum count of existing archives multivolume Is archive archive multivolume?
- Return value:
-
result