I shall leave the explanations to it and just post my script as example here
DIRS="Documents Desktop"
cd ~
for i in $DIRS;
do
echo Syncing $i
rsync -av --progress -e ssh "$i" user@server:/path/to/dir
done
Home » script » Backup with Rsync
Diposkan oleh Unknown on Saturday, November 1, 2008
DIRS="Documents Desktop"
cd ~
for i in $DIRS;
do
echo Syncing $i
rsync -av --progress -e ssh "$i" user@server:/path/to/dir
done
2010 All Rights Reserved News Jaya.
{ 0 komentar... read them below or add one }
Post a Comment
Come on share your comment, but please do not spam