- Configure the job
- Check status
- List files
- Restore after the losing of the hardware
- The technical details of scduply
- Additional information
SkyCover Duply Usage Guidelines
All the actions are executing in the command line. The Windows ™ users should start the CygWin shell.
Configure the job¶
scduply JOB create
JOB – job’s name. The subfolder named JOB will be created and the configuration templates will be placed there.
Open the file “JOB/source” and write there, on the forst line the path to the folder you wish to backup.
The simplest job is complete – you can do the backup right now!
If you need them, open the file “JOB/exclude” and write there the paths, which should be included or excluded in the backup.
+ /home/billing + /home/www - **
Use the full paths. It is possible to use wildcards. Double star means “all files”.
The individual settings¶
If needed, you can set individual configuration settings for the backup job in the file “JOB/conf”.
To exclude job from the batch backup¶
If the job should not be executed in the batch mode via the “bkpall” command, you should create the empty file “JOB/skip”.
scduply JOB backup
or, for all jobs
If the global configuration file has the settings for MAIL_TO, MAIL_FROM, MAIL_SUBJECT and MAIL_CMD parameters, then bkpall will mail the report with the backup summary and the raw backup log.
scduply JOB restore DIRECTORY-WHERE
Restore for 4 days ago¶
scduply JOB restore DIRECTORY-WHERE 4D
Restore for 4 days ago, only subdirectory “will_be_lost”¶
scduply JOB fetch will_be_lost DIRECTORY-WHERE 4D
scduply JOB status
scduply JOB list [AGE]
Restore after the losing of the hardware¶
The minimal set¶
For restoring of the system in the case of losing the hardware you’ll need:
+ Your GPG-key and the password to it (or only the symmetric cryptography password, if the GPG-key is not used). *Suggestion*: make the copy of the settings folder (AFTER the first success backup session – it will hold thr exported copy of the GPG-key and the other settings). + ssh-key which was used for connecting to the backup storage. *Suggestion*: make a copy of the ~/.ssh folder.
These data need to be copied to the removable media (for ex., USB-Flash) and hold in the secret place, outside the office.
The copy of these data must *MANDATORY* be holding by the company’s boss and to be saved outside the office.
The full set¶
The full set, which is needed for restoration with a comfort includes:
+ The fresh copy of the settings folder (because it will hold the full list of the jobs, the last exclusion settings etc.); + The backup logs and reports.; + The ssh-key for access to the backup storage.
It will be a good idea to save in the safe and secret place the GPG-key, the password and the ssh-key as it was mentioned above and to set up the additional backup job for saving all the settings and logs on the standard backup storage.
The settings are placed in the /etc/scduply folder (if it was preconfigured and scduply is runnig by root) or in the ~/.scduply folder.
The backup logs and reports are writen into /var/log/scduply or in the ~/.scduply/log respectively.
The backup copy of CygWin is not needed¶
There is no obligation to make the full backup of the CygWin shell, because it can be restored via new setup.
The technical details of scduply¶
When running as root, scduply uses /etc/scduply folder for the settings.
/etc/scduply should be manually created before the initialization. Otherwise ~/.scduply folder will be automatically created and used.
In the settings folder the global configuration file “conf” is placed, and also the backup job’s profiles subfolders will be created there.
Each subfolder has the files:
+ conf – the local job configuration file in which the global settings can be redefined + source – the first line of the file is holding the path to the folder to be backed up. + exclude – the file of the exclusion wildcards which will be submitted to duplicity with –exclude-globbing-filelist directive + descr – the description (the first line) and the notes (all the rest). It is created and used by SkyCover Duply Web frontend. + skip – if exists, the backup job will be ignored by bkpall command. + saved.env, gpg*.asc – the files holding the information which is required to restore data to the new computer. They are created automatically while backuping.
While backuping scduply creates the log and the report and places them to the /var/log/scduply folder or to the ~/.scduply/log folder.
To be more effective with backuping, please consider the next sources:
man scduply # in the present state - it is a duply man page, which differs only a bit.
The file CHANGES in the scduply’s source code is holding the brief difference description against duply.