rsync daemon and copy directory
Implement the RSYNC daemon service at backup server.
"portal-backup" is the backup rsync server.
"ftsvm-sj-dev" is teh client .
Register a node/drive at this server for a particular client to connect to this machine.
"portal-backup" is the backup rsync server.
"ftsvm-sj-dev" is teh client .
Register a node/drive at this server for a particular client to connect to this machine.
The backup scripts for ftsvm-sj-dev for "UI development team” is available at portal-backup.
1. Host ftsvm-sj-dev is registered at rsync daemon in portal-backup server
File : /etc/rsyncd.conf
File : /etc/rsyncd.conf
[drive5]
comment = dev server code for NO PERL buthtml/JS UI developer
path = /home/backup/ftsvm-sj-devread only = no
list = yes
hosts allow = 171.69.86.203
hosts deny = *
2.1. At ftsvm-sj-dev /home/backup/rsync.pl file is created as:
#!/usr/bin/perl -w
print `rsync -av /var/www/html root\@171.69.86.59::drive5`;
2. 2. /etc/crontab is updated as:
@daily root /home/backup/sync.pl
Ran this code as well, thus creating a rsync at the backup server
At the portal-backup server:
3.1. Created and ran DayOfTheWeek perl script as:
perl /home/backup/dotw-ftsvm-dev.pl
with results as:
tar and gzip command: tar -cvzf /home/backup/uionly/daily/day2/backup05-13-2014.tar.gz /home/backup/ftsvm-sj-dev
3.2.
It is also present in /etc/crontab
# tar.gz the rsync directories into dotw directory
00 5 * * * root perl /home/backup/dotw.pl
@daily root perl /home/backup/dotw-ftsvm-dev.pl