List of Global Functions
BackupProfileDescriptions - Helper function to extract the list of currently available profiles
BackupProfileNames - Get a sorted list of profile names currently available.
CreateCronDescription - Create description of automatic backup.
CreateCronSetting - Create cron file content for selected profile.
DetectedMountPoints - Returns detected mount points
ExcludeNodevFS - Exclude file systems without device
GetCapacity - Return capacity of required medium
GetLocalArchiveName - Returns local archive name (required if NFS target is used)
MapFilesToString - 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.
PostBackup - Post-backup function - unmount mounted NFS share
PrepareBackup - Pre-backup function - mount NFS share if required
ReadBackupProfiles - Read backup profiles from file, do not set any global settings, just
ReadCronSetting - Parse cron file
ReadCronSettings - Parse all /etc/cron.d/yast2-backup-* files and update profiles
ReadInstallablePackages - Read all packages available on the installation sources
RemovableDevices - Try to detect all removable devices present in the system
RemoveBackupProfile - Remove given profile.
RemoveOldArchives - Remove and/or rename old existing archives
RemoveOldMultiArchives - Remove and/or rename old existing multivolume archives
RemoveOldSingleArchives - Remove and/or rename old existing single archives
RestoreDefaultSettings - Restore the default global settings.
RestoreSettingsFromBackupProfile - Restore the global settings from a given backup profile.
StoreSettingsToBackupProfile - Take the current profile information and store it into a given profile. If the profile already exists, it will be overwritten.
WriteBackupProfiles - Write the backup profiles to a file - hardcoded configuration_filename.
WriteCronSettings - Write cron settings from profiles to /etc/cron.d/yast2-backup-* files
WriteProfile - Write autoinstallation profile to file autoinst.xml to the same directory as archive
get_archive_script_parameters - Return backup_search.pl script parameters according to state of variables
get_search_script_parameters - Return backup_search.pl script parameters according to state of variables
List of Global Variables
Helper function to extract the list of currently available profiles
Return value
list<term> - List of item used in the table widget
Get a sorted list of profile names currently available.
Return value
list<string> - the list of strings (possibly empty).
Create description of automatic backup.
Function parameters
string profilename
Return value
string - description string or empty string if profile has disabled automatic start
Create cron file content for selected profile.
Function parameters
string profilename
Return value
string - Cron content or empty string if profile has disabled automatic start
Return capacity of required medium
Function parameters
list<map<string,any> > media
symbol m
Return value
integer - Size of medium in bytes
Returns local archive name (required if NFS target is used)
Return value
string - 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
map - 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)
Post-backup function - unmount mounted NFS share
Return value
boolean - true on success
Pre-backup function - mount NFS share if required
Return value
boolean - true on success
Read backup profiles from file, do not set any global settings, just
Return value
boolean - true if there are some profiles available
Parse cron file
Function parameters
string filename
Return value
map - 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
Return value
void
Read all packages available on the installation sources
Return value
void
Try to detect all removable devices present in the system
Function parameters
boolean only_writable
Return value
map - Removable devices info
Remove given profile.
Function parameters
string profile_name
boolean remove_cronfile
Return value
boolean - If the name of the profile cannot be found, return false, otherwise return true.
Remove and/or rename old existing archives
Function parameters
string name
integer max
boolean multivolume
Return value
map - result
Remove and/or rename old existing multivolume archives
Function parameters
string name
integer max
Return value
map - result
Remove and/or rename old existing single archives
Function parameters
string name
integer max
Return value
map - result
Restore the global settings from a given backup profile.
Function parameters
string profile_name
Return value
boolean - If the name of the profile cannot be found, return false, otherwise return true.
Take the current profile information and store it into a given profile. If the profile already exists, it will be overwritten.
Function parameters
string profile_name
Return value
void
Write the backup profiles to a file - hardcoded configuration_filename.
Return value
boolean - true if the write operation was successful.
Write cron settings from profiles to /etc/cron.d/yast2-backup-* files
Return value
void
Write autoinstallation profile to file autoinst.xml to the same directory as archive
Function parameters
list<string> volumes
Return value
map - map $[ "result" : boolean (true on success), "profile" : string (profile file name) ]
Return backup_search.pl script parameters according to state of variables
Function parameters
string file_list
string file_comment
Return value
string - String with command line parameters