Use batch implementations to create a directory on the current date and back up

Source: Internet
Author: User

Use batch implementations to create a directory on the current date and back up


Description: Because the market data needs to be backed up daily, a batch script has been written to create a directory on the current date and back up the data. You need to combine scheduled tasks to implement scheduled backups. The person you want, you can copy the script directly, modify the path to use.


The script is as follows

@ECHO OFF
Set dst=%date:~0,4%%date:~5,2%%date:~8,2%
If exist backup goto CREAT_DST
MD e:\backup

: CREAT_DST
If exist backup\%dst% goto COPY_SRC
MD e:\backup\%dst%

: COPY_SRC
Copy d:\source.dbf e:\backup\%dst%/v/y


This article is from the "Technical Achievement Dream" blog, please be sure to keep this source http://pizibaidu.blog.51cto.com/1361909/1743093

Use batch implementations to create a directory on the current date and back up

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.