Rsync-linux backup script

Source: Internet
Author: User
The basic form of script is from the website of rsync. In fact, there is only one command: rsync & ndash; force & ndash; ignore-errors & ndash; delete-excluded & ndash; exclude-from = exclude_file & ndash; backup & ndash; backup-dir = 'date

Compile as script

The basic form of this script is from the rsync website. In fact, there is only one command:

Rsync-force-ignore-errors-delete-excluded-exclude-from = exclude_file-backup-dir = 'date + % Y-% m-% d'-av

Key parameters are:

-Backup: backup files before Overwriting
-Backup-dir = 'date + % Y-% m-% d': Creates a backup directory for the backup file, which looks like: 2002-08-15
-Av: archive mode and verbose mode.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.