From 7c9c2f573da29a14ee0837719698720744fffb94 Mon Sep 17 00:00:00 2001 From: Peter Kannewitz Date: Thu, 30 Mar 2023 10:58:48 +0200 Subject: [PATCH] switching back to hardcoded paths --- ag-backup.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ag-backup.yaml b/ag-backup.yaml index f70ab83..ad86673 100644 --- a/ag-backup.yaml +++ b/ag-backup.yaml @@ -3,10 +3,10 @@ # For example, if you have a constant named "hostname" with the value # "myhostname", then the string "{hostname}" will be replaced with # "myhostname" in the configuration file. - constants: - hostname: ag-link.xyz - user: your-username-on-server - mountpoint: /tmp/mnt/ag-link-server +#constants: +# hostname: ag-link.xyz +# user: your-username-on-server +# mountpoint: /tmp/mnt/ag-link-server # Where to look for files to backup, and where to store those backups. # See https://borgbackup.readthedocs.io/en/stable/quickstart.html and @@ -16,7 +16,7 @@ location: # List of source directories to backup. Globs and tildes are # expanded. Do not backslash spaces in path names. source_directories: - - {mountpoint}/home/docker + - /tmp/mnt/ag-link-server/home/docker # Paths to local or remote repositories (required). Tildes are # expanded. Multiple repositories are backed up to in @@ -390,8 +390,8 @@ hooks: # List of one or more shell commands or scripts to execute # before creating a backup, run once per repository. before_backup: - - mkdir -p /tmp/mnt/ag-link-server - - sshfs {username}@{hostname}:/ /tmp/mnt/ag-link-server -o sftp_server='/usr/bin/sudo /usr/lib/openssh/sftp-server' + - mkdir -p /tmp/mnt/ag-link-server + - sshfs username@ag-link.xyz:/ /tmp/mnt/ag-link-server -o sftp_server='/usr/bin/sudo /usr/lib/openssh/sftp-server' # List of one or more shell commands or scripts to execute # before pruning, run once per repository. @@ -416,7 +416,7 @@ hooks: # List of one or more shell commands or scripts to execute # after creating a backup, run once per repository. after_backup: - - fusermount -u {mountpoint} + - fusermount -u /tmp/mnt/ag-link-backup # List of one or more shell commands or scripts to execute # after compaction, run once per repository.