diff options
author | 2023-08-23 20:06:46 +0200 | |
---|---|---|
committer | 2023-08-23 19:06:46 +0100 | |
commit | 5416ad988872ab8a06e3e399fdfbe8f4768ad29d (patch) | |
tree | 9ba857b0bbd92df0f997bc252aa8a274f646ab61 /example/borgmatic/media-to-borg-patterns.py | |
parent | [bugfix/frontend] Normalize header sizes (#2152) (diff) | |
download | gotosocial-5416ad988872ab8a06e3e399fdfbe8f4768ad29d.tar.xz |
[docs] Update backup docs (#2153)
Diffstat (limited to 'example/borgmatic/media-to-borg-patterns.py')
-rwxr-xr-x | example/borgmatic/media-to-borg-patterns.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/example/borgmatic/media-to-borg-patterns.py b/example/borgmatic/media-to-borg-patterns.py index 289c2281a..e1cb6dac5 100755 --- a/example/borgmatic/media-to-borg-patterns.py +++ b/example/borgmatic/media-to-borg-patterns.py @@ -7,12 +7,16 @@ import sys def main(): cli = argparse.ArgumentParser( prog="media-to-borg-patterns", - description="""Generate Borg patterns to backup media files belonging to + description="""Generate Borg patterns to backup media and emoji files belonging to this instance. You can pass the output to Borg or Borgmatic as a patterns file. - For example: gotosocial admin media list-local | media-to-borg-patterns + + For example: gotosocial admin media list-attachments --local-only | media-to-borg-patterns <storage-local-base-path>. You can pass a second argument, the destination file, to write the patterns in. If it's ommitted the patterns will be emitted on stdout instead and you can redirect the output to a file yourself. + + For emojis, use gotosocial admin media list-emojis --local-only | media-to-borg-patterns + instead. """, epilog="Be gay, do backups. Trans rights!" ) |