Forum archive
Where to configure backup_root for tklbam-backup
Hi,
I've neen using a number of turnkey appliances for a while now and have been very happy with them. TKLBAM has been especially useful on a number of occasions.
I ran into a problem with an overnight backup.
When tklbam-backup ran it created a /TKLBAM directory to build the backup in before sending off to our backup server. This managed to fill the root filesystem. I tried setting up /TKLBAM as a symbolic link, however this bombed with an error
Traceback (most recent call last):
File "/usr/bin/tklbam-backup", line 510, in <module>
main()
File "/usr/bin/tklbam-backup", line 472, in main
shutil.rmtree(b.extras_paths.path)
File "/usr/lib/python2.7/shutil.py", line 232, in rmtree
onerror(os.path.islink, path, sys.exc_info())
File "/usr/lib/python2.7/shutil.py", line 230, in rmtree
raise OSError("Cannot call rmtree on a symbolic link")
OSError: Cannot call rmtree on a symbolic linkI had a poke around in the backup.py and found where the directory is originally created which has some code to set the backup_root to /
Is is possible to configure backup_root to be somewhere else with more diskspace. I tried adding the option to /etc/tklbam/conf, but that threw an unknown option error.
Thanks
Jon
Hi,
I have done some more digging. I am using the scp options rather than the hub to backup to our local backup server which has worked fine.
It looks like the /var/cache/duplicity was large. Duplicity doesn't seem to be cleaning up after itself and has got full and incrementals going back 4 months.
I did try deleting some older files from the cache but the next time I ran a backup they were recreated.
Can I use the copy of duplicity in /usr/lib/tklbam/deps/bin to clean up the cache and remote files. I only really need to keep a months worth?
cheers
Jon