@swush 1.0 zync { # Each backup block is backed up to the rsync destination backup { # Host to copy, typically in the form of user@host host : omry@10.0.0.2 # directory to copy, zync supports multiple directory elements for each backup block, but you need a relatively new rsync version to backup more than one directory. # backup is recursive, so to backup an entire server just add / as the directory. directory : /home/omry/public_html # Exclude files or dirs, you can have as many exclude elemets as you need. exclude : public_html/omry.zip } rsync { # Destination directory, ${host} will be replaced by the corresponding backup.host value. destination : "/storage/backup/${host}" # Rsync command, the default is /usr/bin/rsync # command : /usr/bin/rsync # rsync options, see rsync man page. # the options below are the default options, if no options are specified they will be used. options{ -a --force --delete-excluded --delete --inplace } # rsync exit codes to ignore, if not specified, exit code 24 (file vanished) is ignored. ignore_exit_codes{ 24 # Vanished files, just ignore this one. } logs_dir : /storage/backup/logs num_concurrent : 10 } zfs { # The name of the zfs file system to manage the snapshots on. (create snapshots after a backup, and delete old snapshots) backup_file_system : storage/backup /** * ZFS command, default is /usr/sbin/zfs */ # zfs : /usr/sbin/zfs snapshot { /** * Snapshot name pattern, default is yyyy_MM_dd__kk_mm_ss_zzz */ # name_pattern : yyyy_MM_dd__kk_mm_ss_zzz /** * auto delete snapshots older than : * nU, where n is the number (floats supported) and U is a unit: * m : minute * h : hour * d : day * for example, 30d will delete snapshots older than 30 days. * * If not specified, old snapshots are NOT deleted. */ delete_older : 30d # recursive snapshot? false by default #recursive : true } } }