Tool to sync or backup data
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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')