|
@@ -4,22 +4,24 @@ import sys
|
4
|
4
|
backup = False
|
5
|
5
|
|
6
|
6
|
hosts = ['ahorn', 'erle', 'linde']
|
7
|
|
-__basepath__ = '/user_data'
|
|
7
|
+__basepath__ = '/usr/data'
|
8
|
8
|
entries = (
|
9
|
|
- ('dirk@%s:/user_data/bin', os.path.join(__basepath__, 'bin'), None),
|
10
|
|
- ('dirk@%s:/user_data/data', os.path.join(__basepath__, 'data'), None),
|
11
|
|
- ('dirk@%s:/user_data/static_data', os.path.join(__basepath__, 'static_data'), ['Audio', 'timeshift', 'lost+found']),
|
|
9
|
+ ('dirk@%s:/usr/data', __basepath__, ['lost+found']),
|
|
10
|
+ ('dirk@%s:/usr/data', __basepath__, ['lost+found', 'dirk/Audio', 'dirk/bin', 'dirk/Downloads', 'dirk/gnome-boxes', 'dirk/media_images', 'dirk/Videos']),
|
12
|
11
|
('dirk@%s:/home', '/home', None),
|
13
|
12
|
)
|
14
|
13
|
|
15
|
14
|
|
16
|
15
|
for host in hosts:
|
17
|
16
|
for remote, local, skip in entries:
|
18
|
|
- setattr(sys.modules[__name__], host + '_' + os.path.basename(local) + '_remotepath', remote % host)
|
19
|
|
- setattr(sys.modules[__name__], host + '_' + os.path.basename(local) + '_localpath', local)
|
|
17
|
+ name = os.path.basename(local)
|
20
|
18
|
if skip is not None:
|
21
|
|
- setattr(sys.modules[__name__], host + '_' + os.path.basename(local) + '_skip', skip)
|
|
19
|
+ if len(skip) > 1:
|
|
20
|
+ name += '_short'
|
|
21
|
+ setattr(sys.modules[__name__], host + '_' + name + '_skip', skip)
|
|
22
|
+ setattr(sys.modules[__name__], host + '_' + name + '_remotepath', remote % host)
|
|
23
|
+ setattr(sys.modules[__name__], host + '_' + name + '_localpath', local)
|
22
|
24
|
|
23
|
25
|
|
24
|
|
-mount_mockery_audio_remotepath = 'root@mount-mockery.de:/data/audio/items'
|
25
|
|
-mount_mockery_audio_localpath = os.path.join(__basepath__, 'static_data', 'dirk', 'Audio')
|
|
26
|
+mount_mockery_audio_remotepath = 'root@mount-mockery.de:/data/audio'
|
|
27
|
+mount_mockery_audio_localpath = os.path.join(__basepath__, 'dirk', 'Audio')
|