SVN Server BAckup ?
I have written a script:
#vi /etc/cron.daily/svn-backup [code] #!/usr/sh svnadmin dump --incremental /home/admin/repository > /mnt/dumped in order to take backup daily.Its working fine.Everyday it compares the old dump file and do the replacement therein and the old one is no more. But I want the dumped file to be in zipped form. How can I write a script to compare the zipped file and do the backup therein consuming less space HElp |
I think you'd want something like
Code:
# svnadmin dump --incremental /home/admin/repository | gzip -c > /mnt/dumped.gz Code:
#!/bin/bash Code:
45 3 * * * for i in `find /var/backup -type f -mtime +2` ; do rm -f $i ; done |
All times are GMT -5. The time now is 05:11 PM. |