salut, am o intrebare care ma depaseste ref la rsync .
am un script ca cel de mai jos, care face backup + bk incremental . Problema e ca nu tine cont de fisierele trecute in fisierul backup_excludes, si deci face rsync si pe vbox care are zeci de G . Mersi ! backup_excludes contine : /home/valy/.VirtualBox/** scriptul follows : # directory to backup BDIR=/home/$USER/ # excludes file - this contains a wildcard pattern per line of files to exclude EXCLUDES=backup_excludes # the name of the backup machine #[email protected] BSERVER=cozmas@video # your password on the backup server export RSYNC_PASSWORD=<parolamea> ######################################################################## BACKUPDIR=`date +%A` OPTS="--force --ignore-errors --delete-excluded --exclude-from= $EXCLUDES --delete --backup --backup-dir=/$BACKUPDIR -a" export PATH=$PATH:/bin:/usr/bin:/usr/local/bin # the following line clears the last weeks incremental directory [ -d $HOME/emptydir ] || mkdir $HOME/emptydir rsync --delete -av $HOME/emptydir/ $BSERVER::backup/$BACKUPDIR/ rmdir $HOME/emptydir # now the actual transfer rsync $OPTS $BDIR $BSERVER::backup/current _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
