Automatic folder backup script

Source: Internet
Author: User

1. Create a problem named vpbak. BAT and use NotePad to edit the following content:

MD e: \ newbak \ vpbak "% date %
Xcopy D: \ rock \ *. * E: \ newbak \ vpbak % date %/D/E/y/h

 

Saved.

This means to back up all the content in the rock directory of disk d to the newbak directory of disk E, which is named vpbak year month day.

 

 

2. Create an issue named autovpbak. BAT and use NotePad to edit the following content:

Vpbak. Bat> vpbak. Log

 

Saved.

This means that logs are output after the preceding automatic backup is completed.

 

3. Create a problem named vpbak2rar. BAT and use NotePad to edit the following content:

"C: \ Program Files \ WinRAR \ winrar.exe" a-r-EP1-agyyyy-MM-DD "vpbak.rar" E: \ newbak \ vpbak % date %

 

Save and complete.

It means to use the WinRAR tool installed on drive C to compress the vpbak files in the Directory into a compressed package for storage.

 

4. Create an issue named autovpbak2rar. BAT and use NotePad to edit the following content:

Vpbak2rar. Bat> vpbak2rar. Log

 

 

Saved.

This means that logs are output after the above automatic compression is completed.

 

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.