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
Today, the company asked me to copy the backup files on the server to the internal server, and as long as they are up-to-date, well, what is the ideal goal of O M personnel, that is, what can be done by computers, never do it by yourself.System: centos 5.9Environment: The backup file is under/root/bak. Of course, I tested it on a virtual machine.1.
Real-time file backup using Linux commands-incron, rsync, and inotify
I,Rsync, incronIntroduction
For details about the rsync tool and its use with the cron tool for Scheduled backup, refer to the blog: http://blog.csdn.net/wangjun2008/article/details/4268539;
Inotify is a file change notification mechanism, which is i
Fix for Linux file system error Ddrescue replace DD Recovery software backup Super blockA recently processed Linux server power outage causes the file system to not read and write, the data is not availableExample, now summarizes the Linux file system error repair method.EXT3-FS error (device Hda3) in Start_transaction
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
Oracle control file backup
1. Back up the control file as a binary fileSQL> alter Database Backup controlfile to 'I: \ oracle \ backup \ Control. bkp ';2. Back up the control file as a text
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
1. Specify Tape characteristics
When you do not specify any tape attributes, the Ufsdump command uses a collection of default values. You can specify the cartridge (-c), density (-D), size (-s), and number of tracks (-T). Note You can specify options in any order, as long as the corresponding parameters are in the same order.
2. Use OIC-150 to back up the file system
To perform a full backup of the
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, reaching about 7 GB, resulting in s3cmd un
.===========================================================================================================4. Compare SnapshotsCompare snapshots to see the difference between backup files between two snapshotsExecute commandHDFs Snapshotdiff Execute command HDFs Snapshotdiff Results Results:
+
The file/directory has been created.
-
The
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
I just got in touch with the rsync synchronization Backup Server File software. I am looking for an rsync parameter description today. I will introduce these parameters to you. I hope they will help you.
Rsync Installation
The latest version of rsync is 3.0.9.
Wget http://rsync.samba.org/ftp/rsync/rsync-3.0.9.tar.gz tar-xvzf rsync-3.0.9.tar.gz; cd rsync-3.0.9;./configure; make install
Rsync server configura
Normal local backup
The code is as follows
Copy Code
net stop MySQLxcopy D:/xx/data/bbb/*.* e:/cache/test/%date:~0,10%//yxcopy D:/xx/data/aa/*.* e:/cache/test/h/%date:~0,10%//ynet start MySQL
Scheduled incremental backups
The site directory to be backed up is: F:/webdate, the directory saved after the backup is: F:/webdate-back, the log directory is: F:/back-log.
Cre
The following are only references, and may be slightly different if there are multiple instances:
This environment is SQL Server Standard version 64-bit and SQL Server 2008 Standard version 64-bit dual instances installed simultaneously in a
On Windows Server 2008 Standard Version 64-bit OS:
Code
Copy Code code as follows:
Windows Server 2008 Standard Version 64-bit
SQL Server Standard Version 64-bit
Query user library data file defa
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
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.