selective-backup.py

This commit is contained in:
2023-11-27 19:49:59 +01:00
parent f93f399dc9
commit 544c576183
+3 -3
View File
@@ -7,15 +7,15 @@ import shutil
basedir = "/media/hd/cloud" basedir = "/media/hd/cloud"
# list of the paths to the files and directories to be copied, relative to the base directory # list of the paths to the files and directories to be copied, relative to the base directory
filelist = "/media/hd/cloud/Tilman/Computer/selective-backups/filelist.txt" filelist = "/media/hd/cloud/Tilman/Computer/selective-backup/filelist.txt"
# duration for backups to be kept # duration for backups to be kept
days_to_keep = 5 days_to_keep = 5
months_to_keep = 5 months_to_keep = 5
# directories to backup to # directories to backup to
daily_dir = "/media/hd/cloud/Tilman/Computer/selective-backups/daily/" daily_dir = "/media/hd/cloud/Tilman/Computer/selective-backup/daily/"
monthly_dir = "/media/hd/cloud/Tilman/Computer/selective-backups/monthly/" monthly_dir = "/media/hd/cloud/Tilman/Computer/selective-backup/monthly/"
now = datetime.now() now = datetime.now()
today = datetime.today() today = datetime.today()