mysync/example/backup_config.py

16 lines
558 B
Python
Raw Normal View History

2020-01-26 17:13:41 +01:00
import os
import sys
backup = True
2021-01-16 09:19:21 +01:00
host = 'erle'
backup_basepath = '/data/backup/data'
2020-01-26 17:13:41 +01:00
installations = ['mint', 'kubuntu', 'openSuSE']
for installation in installations:
2021-01-16 09:19:21 +01:00
setattr(sys.modules[__name__], 'home_%s_remotepath' % installation, 'dirk@%s:/home' % host)
2020-01-26 17:13:41 +01:00
setattr(sys.modules[__name__], 'home_%s_localpath' % installation, os.path.join(installation, 'home'))
2021-01-16 09:19:21 +01:00
data_remotepath = 'dirk@%s:/usr/data' % host
data_localpath = 'usr/data'
data_skip = ['lost+found', 'dirk/Audio', 'dirk/bin', 'dirk/gnome-boxes', 'dirk/media_images', 'dirk/Videos']