[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] Error with file selection
From: |
Yves Goergen |
Subject: |
Re: [Duplicity-talk] Error with file selection |
Date: |
Fri, 03 Sep 2010 21:01:29 +0200 |
User-agent: |
Thunderbird 2.0.0.24 (Windows/20100228) |
On 03.09.2010 20:31 CE(S)T, Kenneth Loafman wrote:
> Could you show the script? What shell are you using?
The script is rather long... it sets variables and does stuff around
backup management. Maybe here's a few excerpts:
> SOURCE=/var/cache/mylvmbackup/mnt/backup
> EXCLUDES="--exclude \"$SOURCE/dev/**\" --exclude \"$SOURCE/tmp/**\" --exclude
> \"$SOURCE/var/run/**\""
> # alternatives:
> #EXCLUDES="--exclude '$SOURCE/dev/**' --exclude '$SOURCE/tmp/**' --exclude
> '$SOURCE/var/run/**'"
> #EXCLUDES="--exclude $SOURCE/dev/** --exclude $SOURCE/tmp/** --exclude
> $SOURCE/var/run/**"
> FTP_HOST=$BACKUP_FTP_HOST
> FTP_USER=$BACKUP_FTP_USER
> FTP_PASSWORD="$BACKUP_FTP_PASS"
> PASSPHRASE=mypass
> LVM_VG=apollo3
> LVM_LV=root
> LVM_SNAPSIZE=1G
>
> OpenSnapshot()
> {
> PASSWORD="$DB_PASS_ROOT" mylvmbackup --vgname=$LVM_VG --lvname=$LVM_LV
> --backuptype=none --extra_flush_tables --innodb_recover --keep_mount
> --lvsize=$LVM_SNAPSIZE --skip_hooks && \
> # boot-Verzeichnis als Mountpoint löschen und als symlink zum echten
> boot-Verzeichnis einrichten
> rmdir /var/cache/mylvmbackup/mnt/backup/boot && \
> ln -s /boot /var/cache/mylvmbackup/mnt/backup/boot
> }
>
> CloseSnapshot()
> {
> umount /var/cache/mylvmbackup/mnt/backup && \
> lvremove -f /dev/$LVM_VG/${LVM_LV}_snapshot
> }
>
> DEST=ftp://address@hidden/backup-all
> COMMON_BACKUP_ARGS="--archive-dir /backup --name all $EXCLUDES --volsize 250"
> TMPDIR=/backup/tmp
> IONICE="ionice -c3"
>
> export FTP_PASSWORD
> export PASSPHRASE
> export TMPDIR
>
> OpenSnapshot && \
> $IONICE duplicity $COMMON_BACKUP_ARGS "$SOURCE" "$DEST" && \
> CloseSnapshot
--
Yves Goergen "LonelyPixel" <address@hidden>
Visit my web laboratory at http://beta.unclassified.de