Tool to sync or backup data
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sync_config.py 750B

123456789101112131415161718192021222324
  1. import os
  2. import sys
  3. backup = False
  4. hosts = ['ahorn', 'buche', 'erle', 'linde']
  5. __basepath__ = '/usr/data'
  6. entries = (
  7. ('dirk@%s:/usr/data', __basepath__, None),
  8. ('dirk@%s:/home', '/home', None),
  9. )
  10. for host in hosts:
  11. for remote, local, skip in entries:
  12. setattr(sys.modules[__name__], host + '_' + os.path.basename(local) + '_remotepath', remote % host)
  13. setattr(sys.modules[__name__], host + '_' + os.path.basename(local) + '_localpath', local)
  14. if skip is not None:
  15. setattr(sys.modules[__name__], host + '_' + os.path.basename(local) + '_skip', skip)
  16. mount_mockery_audio_remotepath = 'root@mount-mockery.de:/data/audio'
  17. mount_mockery_audio_localpath = os.path.join(__basepath__, 'dirk', 'Audio')