Backup in the Linux environment

xiaoxiao2021-03-06  50

Space Using MOST Least Less Than Full

Backup Speed ​​Slowst Fastest Faster Than Full

Restore speed FASTEST SLOWEST FASTER THAN Incremental

Differential backups may back up data ignored data, but differential backup recovery speeds are fast than the increment, because it only requires the last full backup and the most recent differential backup; and incremental backups need to be completely backed up from last time and Since each incremental backup.

For the user's writing method, you need to use the -n or --newer option of the tar command, followed by a time, the time should be the usual calendar format (for example: 03/199 = March 12th, 1999).

TAR-CVF / DEV / ST0 --NEWER 03/12/1999 /

This command will be the file in the backup system in March 12th, 1999 and its future. I will provide a simple script file to automate the automation model that simultaneously implements complete and differential backups. Before using this script, pay attention to check the environment variable defined by the script to meet your needs. #! / bin / sh # ####################################################### script to cover daily and weekly backups on one tape # Generic UNIX version -.! edit variables as required # # for this to work, it MUST be started on a Monday # # Copyright (c) 1999, Tim Jones # Permission granted for use / Modification # # Tim Jones / Linux Magazine Provide this shell script with no warranty # (IMPLIED or otherwise) # ############################################################################################################################################################################# #############

DOW = `date % w` Date =` Date % d` DAY = `Date % a` device =" my shutind tape "# ■ =" my no_rewind tape "# non-rebinding Tape Drive rebind = "MT -F $ Device Rewind" EOD = "MT -F $ NDEVICE EOD" fsf = "MT -F $ NDEVICE FSF" maillist = "root" # list of users to receive backup notice

转载请注明原文地址:https://www.9cbs.com/read-82330.html

New Post(0)