| Syntax |
|
| Documentation | $backup.restore.getStoredFiles: Returns a newline (\n) separated list of the file paths stored in the backup file. Only entries of the zipfile which will end up as regular files if the backup is applied will be returned.
|
| Examples | |
| $io.sendBytes{1}{}
$// backup
$if{$existsCurrent{backup}}{
$io.sendBytes{1}{Adding backup rule. } $backup.setup.add{backup_test}{1}{$getCurrent{i}}{public://index.html}{0} $io.sendBytes{1}{Committing transaction. } $commit{NONE} $io.sendBytes{1}{Flagging backup start. } $backup.start{backup_test} $io.sendBytes{1}{Now waiting for backup to start. This may take a while. } $while{$isEmpty{$backup.getLastFile{backup_test}}}{ $io.sendBytes{1}{Waiting 5 sec... } $sleep{5000} } } { Backup this account now. }
$// restore
$if{$existsCurrent{restore}}{
$set{file}{$backup.getLastFile{backup_test}}
File: $get{file} } $// remove rule $if{$existsCurrent{remove}} { $backup.setup.remove{backup_test} } { $if{$backup.setup.exists{backup_test}}{Remove test backup rule. } } |
|
| Group | Special |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | 1 |