Commits

Vadim Fint  committed 258a424

feature: move historic options from sync to archive

refs: #1

  • Participants
  • Parent commits 7faa806
  • Branches feature

Comments (0)

Files changed (2)

File src/ui/console/commands/archive.py

         config='x.y'
     )
 
+    historic_group = parser.add_argument_group(
+        title='Backup history management'
+    )
+    historic_group.add_argument(
+        '--max-age', metavar='AGE',
+        default='1w',
+        help=textwrap.dedent('''
+            Max snapshots age.
+            Examples:
+             - 30 (30 days)
+             - 2d10h (2 days 10 hours)
+             - 10m (invalid! cant distinguish between months and minutes)
+             - 10mi (10 minutes)
+             - 10mo (10 months)
+             - 10s1h (stupid form, but valid: 1 hour 10 seconds)
+        ''').strip()
+    )
+
     options = parser.add_argument_group(title='Options')
     options.add_argument(
         '-h', '--help',

File src/ui/console/commands/sync.py

         help='exclude pattern (rsync-like), can be specified multiple times'
     )
 
-    historic_group = parser.add_argument_group(
-        title='Backup history management'
-    )
-    historic_group.add_argument(
-        '--max-age', metavar='AGE',
-        default='1w',
-        help=textwrap.dedent('''
-            Max snapshots age.
-            Examples:
-             - 30 (30 days)
-             - 2d10h (2 days 10 hours)
-             - 10m (invalid! cant distinguish between months and minutes)
-             - 10mi (10 minutes)
-             - 10mo (10 months)
-             - 10s1h (stupid form, but valid: 1 hour 10 seconds)
-        ''').strip()
-    )
-
     options = parser.add_argument_group(title='Options')
     options.add_argument(
         '-h', '--help',