Mar 17, 2020 Create bucket using Google Cloud Console and set appropriate permissions. STATICBUCKETNAME: Name of the bucket to collect static files (mandatory if COLLECTSTATICFILESONSTORAGE is set to true) GSACCESSKEYID: Google Cloud Access Key. GSSECRETACCESSKEY: Google Cloud Secret Access Key. How to create Access Keys on Google.
Nameduplicity - Encrypted incremental backup to local or remote storage.
SynopsisFor detailed descriptions for each command see chapter ACTIONS.
duplicity [full|incremental][options] source_directory target_url
duplicityverify[options] [--compare-data] [--file-to-restore <relpath>] [--time time] source_url
target_directory
duplicity collection-status[options] [--file-changed <relpath>]
target_url
![]()
duplicity list-current-files[options] [--time time] target_url
duplicity [restore][options] [--file-to-restore <relpath>] [--time time] source_url
target_directory
duplicity remove-older-than <time>[options] [--force] target_url
duplicity remove-all-but-n-full <count>[options] [--force] target_url
duplicityremove-all-inc-of-but-n-full <count>[options] [--force] target_url
duplicity cleanup[options] [--force] target_url
duplicity replicate[options] [--time time]
source_url target_url
DescriptionDuplicity incrementally backs up filesand folders into tar-format volumes encrypted with GnuPG and places themto a remote (or local) storage backend. See chapter URL FORMAT for a listof all supported backends and how to address them. Because duplicity useslibrsync, incremental backups are space efficient and only record the partsof files that have changed since the last backup. Currently duplicity supportsdeleted files, full Unix permissions, uid/gid, directories, symbolic links,fifos, etc., but not hard links.
If you are backing up the root directory/, remember to --exclude /proc, or else duplicity will probably crash onthe weird stuff in there.
ExamplesHere is an example of a backup, usingsftp to back up /home/me to some_dir on the other.host machine:duplicity/home/me sftp://[email protected]/some_dirIf the above is run repeatedly,the first will be a full backup, and subsequent ones will be incremental.To force a full backup, use the full action: duplicity full /home/me sftp://[email protected]/some_diror enforcing a full every other time via --full-if-older-than <time> , e.g. a fullevery month: duplicity --full-if-older-than 1M /home/me sftp://[email protected]/some_dirNow suppose we accidentally delete /home/me and want to restore it theway it was at the time of last backup: duplicity sftp://[email protected]/some_dir/home/meDuplicity enters restore mode because the URL comes before thelocal directory. If we wanted to restore just the file 'Mail/article' in/home/me as it was three days ago into /home/me/restored_file: duplicity-t 3D --file-to-restore Mail/article sftp://[email protected]/some_dir /home/me/restored_fileThe following command compares the latest backup with the current files: duplicity verify sftp://[email protected]/some_dir /home/meFinally, duplicityrecognizes several include/exclude options. For instance, the followingwill backup the root directory, but exclude /mnt, /tmp, and /proc: duplicity--exclude /mnt --exclude /tmp --exclude /proc / file:///usr/local/backupNotethat in this case the destination is the local directory /usr/local/backup. The following will backup only the /home and /etc directories under root: duplicity --include /home --include /etc --exclude ’**’ / file:///usr/local/backupDuplicity can also access a repository via ftp. If a user name is given,the environment variable FTP_PASSWORD is read to determine the password:
FTP_PASSWORD=mypassword duplicity /local/dir ftp://[email protected]/some_dir
ActionsDuplicity knows action commands, which can be finetuned with options.The actions for backup (full,incr) and restoration (restore) can as wellbe left out as duplicity detects in what mode it should switch to by theorder of target URL and local folder. If the target URL comes before thelocal folder a restore is in order, is the local folder before target URLthen this folder is about to be backed up to the target URL. If a backup is in order and old signatures can be found duplicity automaticallyperforms an incremental backup.
Note: The following explanations explainsome but not all options that can be used in connection with that actioncommand. Consult the OPTIONS section for more detailed informations.
Options
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |