/Volumes/Backup/path/to/image.sparsebundle
toto.example.org) where
you have an SSH access (username: mylogin) with
public-key authenticationnas.company.com
where you own a volume (name: volname) configured for AFP (Apple Filing Protocol)
access (login: mylogin, password: mypassword).#
# Configuration file example for backup(3)
#
#### Mandatory global settings ####
<global>
src_rootdir = $HOME # Root directory on the (local) source
include_dir = * # backup all sub-directories (relative to src_rootdir)
</global>
#### Mandatory default backup definition ####
<default>
target_url = drive:///Volume/Backup # backup on an external drive 'Backup'
</default>
# Definition of the backup on a local [encrypted] sparse bundle
<sbimage>
target_url = sparsebundle:///path/to/image.sparsebundle
dst_rootdir = myBackup # Root directory for the backup
</sbimage>
# Definition of the backup on the machine 'toto' (via SSH access)
<toto>
target_url = ssh://mylogin@toto.example.org # backup through ssh
dst_rootdir = /backup/`whoami`@`hostname` # Root directory on target server
restrict_on_subnet = 10.7.14 # backup only when you're working
</toto>
# Definition of the backup on the company NAS (via AFP access)
<nas>
target_url = afp://mylogin:mypassword@nas.company.com/volname
dst_rootdir = myBackup # Root directory for the backup
restrict_on_subnet = 10.7.14 # backup only when you're working
</nas>
# Definition of the backup on a remote [encrypted] sparse bundle on the company NAS
<nassbimage>
target_url = afp://mylogin:mypassword@nas.company.com/volname/path/to/image.sparsebundle
dst_rootdir = myBackup # Root directory for the backup
restrict_on_subnet = 10.7.14 # backup only when you're working
</nassbimage>
Pretty natural I hope :)To backup using the 'backup
toto' section of the configuration file,
just run:
If you need to restore data from the backup 'backup --section=toto
toto', run :
backup --section=toto -r
ssh
and afp.