• Home
  • About
  • Archives
Skip to content

Pario TechnoBlob

A chronological documentation test project, nothing serious, really!

  • Home
  • About
  • Archives

rsync backup on a local pc

Posted on 10. April 20077. January 2009 by Hans-Henry Jakobsen
#!/bin/bash
echo "Starting Daily rsync backup on `date`"

for FSYS in /home/username/rsync
do
  /usr/bin/rsync -aE --delete $FSYS /home/username/rsync_bck
  if [ $? != 0 ]; then
    echo " ==> Error during rsync of $FSYS"
  else
    echo "rsync of $FSYS OK on `date`"
  fi
done

echo "Finished Daily rsync backup at `date`"

Share this:

  • Twitter
  • Facebook
Posted in: Linux, Photo etc, ScriptingTagged: backup, rsync

Post navigation

Previous: md5sum av filer/bilder
Next: Rename files with one extension to another
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Search

Apache apt-get awk backup basename bash CentOS convert csv Database dd Debian esxi5 Etch EXIF Fedora find Gentoo grep howto html imagemagick iptables iso jhead JPG mount MySQL Nikon nmap perl PHP Postfix RedHat rename rhel5 sed sftp SMTP sort ssh Ubuntu VMware Wordpress Zimbra

  • Backup
  • Linux
  • Misc
  • Network
  • Photo etc
  • Scripting
  • Security
  • Virtualization
  • Web
  • Windows
Resume X WordPress Theme by Wp Theme Space