The program needs to overwrite the backup file because of the project.
(The original solution is to use VB6 to traverse the file, do not spit slot)
Requirement 1: Check the modification time of each file, if it is less than the date parameter, then backup (and delete);
Requ
0) # If the parameter is null, an error is prompted and echo "message: param is wrong" echo "eg :. /bak. sh path suffix "exit $ E_BADARGSesac string =" "cd $1 # enter the input directory # When backing up files in the subdirectory, the parameter also needs to be connected to if [$ #-gt "1"] then string = $ string "" $2 fi for filename in * # read the files in the current directory do if [-d" $ filename "] # Check whether the directory is then/bin/sh $0 $ (pwd) /$ filename $ string # Is the dire
file, this time to remove the U disk, will destroy your backup data, patiently waiting for a while, will be back to completion.
The second step, when we open the U disk, you will see the following folder. Configuration inside the XML file, is the backup data layout management, this part we do not need to understand,
Atitit. Improve backup file copy speed (3)----Create a synchronous delete script
1. Two ways to create a synchronous delete script: 1
2.1 Info2 file from Recycle Bin ... 1
3. Cleanup ends in post-snap comparison 1
4. NPP replace Gene del from LST 1
5. Code 2
1. Two ways to create a synchronous delete script :
2.1 Info2 f
. NET provides many convenient methods, including finding files in processing files, copying files, and so on, today is a simple program to implement incremental backup files.
The first thing you need is to select the backup source file path SourcePath and the backup destination f
S3cmd implements file synchronization and backup in batches using split. s3cmd is always used to synchronize backup to the server. However, a small problem has occurred recently. After verification, it is found that the Server File is growing bigger and bigger after packaging, and it reaches about 7 GB, so s3cmd cannot
Knowledge of Linux commands, help, basic file operations, backup commands,vi editor usage1. Understanding Linux commands1)thelinux command is complete with a class of functions, options complete specifically. 2) command ----Shell(command interpreter)----- Kernel (kernel) This is the command execution process;Depending on whether the command is part of the Shell , the command is divided into internal command
1.tar-p whether to keep the root directory-T view the contents of the compressed file-n 201401010 backup date aftertar -zcpf/tar/data2. tar. GZ/ETC/*conf[[email protected]/]# CD Tar/[[email protected] tar]# ll total 80-rw-r--r--1 root ro OT 39051 09-08 23:42 data1.tar.gz-rw-r--r--1 root root 39046 09-08 23:43 data2.tar.gz2.dump-0 Full Backup3.restore Recovery-TF View-RF Recovery[email protected] dump]# dump
The examples in this article describe how python implements configuration file backups. Share to everyone for your reference. Specific as follows:
Here the platform for Linux:
#!/usr/bin/python#author:gdlinjianying@qq.comimport osimport timesource = ['/etc/sysconfig/network-scripts ', '/etc/ Sysconfig/network ', '/etc/resolv.conf ']target_dir = '/opt/' target = target_dir + time.strftime ('%y%m%d%h%m%s ' + '). tar.gz ') Tar_command = "Tar-czvf '%
Backing up the SQL Server database
The code is as follows
Copy Code
Backup database [db] to disk= ' c:mysql ' + replace (replace (varchar, GETDATE (), 121), '-', ', ', '), ': ', ', ', ', ', ', '. Bak ' with Password = ' 123 ', init;
Restore the SQL Server database
code is as follows
copy code
restore DB [Database] from disk= database backup
The requirements for log backups are described below:To add a scheduled task to a Shiyanlou userPack/var/log dpkg.log,mysql.log,fontconfig.log three files to/home/shiyanlou/backup/directory every day 2 o'clock in the morningThe name format is year-month-day. Tar, for example today is October 23, 2017, then the file name is 2017-10-23.tar, and if there is a duplicate, overwrite
The first stepI searched th
manager Alliance Forum to download permission restoration). we need to create the same user name as the original system.For text processing of backup permissions, we first need to remove the host name before the user name and (OI) (CI) and other redundant stuff.As shown below:D: estdddd BUILTINUsers :( OI) (CI) RCOMPUTERl :( OI) (CI) FNt authoritysystem :( OI) (CI) FShould be changedD: estdddd Users: RBl: FSYSTEM: FThen remove the inheritance of the
We all know that the main function of the log file is to restore the data of the MySQL database. Therefore, the log file maintenance of the MySQL database is also very important. When MySQL and log files are used together.
You sometimes want to delete/back up old log files and tell MySQL to start recording in new files.
This article describes how to enable new log files, including updates and general logs.
SH file for full backup: exp_comp.sh
rq= ' date + '%m%d '
SU-ORACLE-C "Exp System/manager full=y inctype=complete file=/oracle/export/db_comp$rq.dmp"
SH file for cumulative backup: exp_cumu.sh
rq= ' date + '%m%d '
SU-ORACLE-C "Exp System/manager full=y inctype=cumulativ
Generally, MySql database backup can be performed in two ways: Exporting SQL statements directly or SQL storage files in other formats that are easy to import, using SQL statements or some visual clients to export data, this method is very simple and does not need to be repeated. Another method is to copy the database file and convert the database file into an SQ
RSync for file backup Synchronization
1. rsync Introduction
Rsync is an application software in Unix. It can synchronously update files and directories of two computers and use differential encoding to reduce data transmission. An important feature in rsync that is not seen in most similar programs or protocols is that the image only needs to be sent once for each target. Rsync can copy/display directory at
We will use the scheduled tasks in windows to back up the database. 1. copy the folder to a fixed folder, and 2. copy the folder to the automatically generated folder on the current day:
1: Our company is going to create an application for "counting offline movies every day". I will first make this function into a WinForm program to generate an exe file.
2: Choose Start> program> attachment> System Tools to open the scheduled task window.
3: Double-c
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.