Skip to content
Snippets Groups Projects
Commit 6e4d07b0 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

File exclusion on /, use local rdiff-backup.

File exclusion on root filesystems didn't work.

* backup-one-task: Don't produce a garbage exclude file when a
  .lysrdiff-exclude file is present on the / file system.

Use our own rdiff-backup program.

* backup-one-task: Use /opt/LYSrdiff/bin/rdiff-backup to perform
  the backup.
parent 08db3c07
No related branches found
No related tags found
No related merge requests found
2007-01-11 Per Cederqvist <ceder@sedesopim.lysator.liu.se>
File exclusion on root filesystems didn't work.
* backup-one-task: Don't produce a garbage exclude file when a
.lysrdiff-exclude file is present on the / file system.
Use our own rdiff-backup program.
* backup-one-task: Use /opt/LYSrdiff/bin/rdiff-backup to perform
the backup.
2007-01-10 Per Cederqvist <ceder@sedesopim.lysator.liu.se> 2007-01-10 Per Cederqvist <ceder@sedesopim.lysator.liu.se>
Lysator configuration tweaks. Lysator configuration tweaks.
......
...@@ -122,8 +122,9 @@ scp -B -q -i /root/.ssh/backupkey \ ...@@ -122,8 +122,9 @@ scp -B -q -i /root/.ssh/backupkey \
# Create an emtpy exclude file if non existed on the server. # Create an emtpy exclude file if non existed on the server.
touch "$exclude" touch "$exclude"
sed 's%^\([-+] \|\)\([^/]\)%\1'"$serverpath"'/\2%' \ sed < "$exclude" \
< "$exclude" \ -e 's%^\([-+] \|\)\([^/]\)%\1'"$serverpath"'/\2%' \
-e 's%^\([-+] \|\)//%\1/%' \
| tr '\n' '\0' > "$excl_abs" | tr '\n' '\0' > "$excl_abs"
...@@ -147,7 +148,8 @@ schema="ssh -o BatchMode=yes -o ServerAliveInterval=120" ...@@ -147,7 +148,8 @@ schema="ssh -o BatchMode=yes -o ServerAliveInterval=120"
schema="$schema -a -k -x -i /root/.ssh/backupkey" schema="$schema -a -k -x -i /root/.ssh/backupkey"
schema="$schema %s $remoterdiff --server" schema="$schema %s $remoterdiff --server"
rdiff-backup --exclude-other-filesystems --null-separator \ /opt/LYSrdiff/bin/rdiff-backup \
--exclude-other-filesystems --null-separator \
--include-globbing-filelist "$excl_abs" \ --include-globbing-filelist "$excl_abs" \
--remote-schema "$schema" \ --remote-schema "$schema" \
--force \ --force \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment