Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008

    Help needed for a simple backup script

    Hi there techies,

    I need some help with creating a script which will backup a few directories to the second hdd. I have put together rsync commands but need someone to put it in a script which logs the changed/deleted files and sends me an email report after the script has run.

    rsync -a -r --delete /home/user1/public_html/flviideo /backup/backup-folders/user1/public_html/flviideo
    rsync -a -r --delete /home/user2/public_html/downloads /backup/backup-folders/user2/public_html/downloads
    rsync -a -r --delete /home/user3/public_html/flvideo /backup/backup-folders/user3/public_html/flvideo
    rsync -a -r --delete /home/user3/public_html/video /backup/backup-folders/user3/public_html/video
    rsync -a -r --delete /home/user4/public_html/flvideo /backup/backup-folders/user4/public_html/flvideo
    rsync -a -r --delete /home/user4/public_html/video /backup/backup-folders/user4/public_html/video
    rsync -a -r --delete /home/user5/public_html/media/albums /backup/backup-folders/user5/public_html/media/albums
    rsync -a -r --delete /home/user5/public_html/gallery/albums /backup/backup-folders/user5/public_html/gallery/albums
    Any help will be appreciated.

  2. #2
    Also try 7zip


Similar Threads

  1. Backup script needed
    By DigiDesignz in forum Software & Scripts Requests
    Replies: 4
    Last Post: 07-26-2007, 05:15 AM
  2. MySQL Backup Script - help needed
    By aris1970 in forum Dedicated Server
    Replies: 4
    Last Post: 11-25-2005, 06:43 PM
  3. Creating a simple backup script
    By StueyB in forum Hosting Security and Technology
    Replies: 1
    Last Post: 09-09-2005, 08:13 AM
  4. Backup Script needed
    By troller in forum Dedicated Server
    Replies: 6
    Last Post: 07-17-2005, 10:12 PM
  5. another simple script needed
    By UH-Matt in forum Programming Discussion
    Replies: 12
    Last Post: 11-08-2002, 06:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts