I’m trying to stretch my n00b python skills by writing a script for backing up my /home
on my Desktop Linux box. but for testing purpose, I’m skipping the /home/dthomas folder as it’s huge
and only backing up the other users on the system.
Without embarrassing myself with the code here are the important snippets
I’m using rclone as a rate limiter but I don’t feel this is causing the issue as it’s backing up without any other issues.
#Folders to backups backupData = "/home" excludeFolders = ["",'"/home/dthomas"'] excludeData = " --exclude=".join(excludeFolders) def rRestic(): logger.info("starting restic backup") subprocess.run(["restic", "backup", backupData, excludeData]) logger.info("finished Rclone backup")
the problem is when I run the script I get the following output
~/Bin >>> python3 PiroResic.py  INFO:__main__:starting Rclone 2019/01/30 13:22:00 NOTICE: B2 bucket rclonethadeus: Serving restic REST API on http://127.0.0.1:8080/ INFO:__main__:starting restic backup --exclude="/home/dthomas" does not exist, skipping open repository repository 28d64023 opened successfully, password is correct
any tips would be awesome.