Aller au contenu principal

backup

Snapshot a directory and upload it to remote

Usage:
snaper backup files [flags]

Aliases:
files, fs, filesystem

Examples:
snaper backup files /path/to/backup
snaper backup files mybackup

Flags:
--all Backup all directories configured
--concurrent int Number of concurrent workers to use for upload
--configure Only configure the backup without running it
--encryption-key string Encryption key to use for encrypting data
--encryption-key-file string Encryption key file to read for encrypting data
--exclude strings Paths to exclude from backup (separated by commas)
--follow-symlinks Follow symlinks when backing up files
-h, --help help for files
--ignore-existing Check for existing files on S3 and ignore them (only for bug fixing)
--include strings Paths to include in backup (separated by commas)
-n, --name string Name of the backup (optional)
-p, --path string Directory path to backup (optional)
remarque

MySQL et PostgreSQL supportent les connexions par socket. Cette méthode sera essayée par défaut si vous spécifiez "localhost" comme hôte (valeur par défaut). Si vous souhaitez forcer la connexion par TCP/IP, spécifier 127.0.0.1 à la place

Examples

Backup excluding cache and log directories

snaper backup files /path/to/backup --exclude "var/cache*,var/log*"