From 73ae00bfca64b78e0c94a0a6bd88988fcda08d19 Mon Sep 17 00:00:00 2001 From: zwnk Date: Thu, 3 Aug 2023 10:20:52 -0400 Subject: [PATCH] .sh added --- backup_restic.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 backup_restic.sh diff --git a/backup_restic.sh b/backup_restic.sh new file mode 100644 index 0000000..1324ece --- /dev/null +++ b/backup_restic.sh @@ -0,0 +1,7 @@ +## init once repo +docker run --rm --name restic_init -e RESTIC_REPOSITORY=rclone:remote:backup -e RESTIC_PASSWORD=SUPERPASSWORD -v /mnt/user/zwnk/resticNasBackup/:/rcloneconf/ -e RCLONE_CONFIG=/rcloneconf/rclone.conf instrumentisto/restic --verbose --host MYSERVERNAME init + +## backup job +docker run --rm --name restic_foto_backup -v /mnt/user/fotos:/fotos -e RESTIC_REPOSITORY=rclone:remote:backup -e RESTIC_PASSWORD=SUPERPASSWORD -v /mnt/user/zwnk/resticNasBackup/:/rcloneconf/ -e RCLONE_CONFIG=/rcloneconf/rclone.conf instrumentisto/restic --verbose --host MYSERVERNAME backup /fotos +docker run --name restic_forget --rm -e RESTIC_REPOSITORY=rclone:remote:backup -e RESTIC_PASSWORD=SUPERPASSWORD -e RCLONE_CONFIG=/rcloneconf/rclone.conf instrumentisto/restic forget --keep-last 3 +docker run --name resitc_prune --rm -e RESTIC_REPOSITORY=rclone:remote:backup -e RESTIC_PASSWORD=SUPERPASSWORD -e RCLONE_CONFIG=/rcloneconf/rclone.conf instrumentisto/restic prune