| Syntax |
|
| Documentation | $backup.setup.getInterval: Returns the backup interval of the given rule. The returned value may be one of DAILY, WEEKLY, MONTHLY or a integer indicating a number of hours.
|
| 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}{Account list: $backup.setup.getAccountList{backup_test} } $io.sendBytes{1}{Interval: $backup.setup.getInterval{backup_test} } $io.sendBytes{1}{Paths: $backup.setup.getPathList{backup_test} } $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 |