file systems, the mv copies the file first, and then deletes the original file. the link to the file will also be lost.
3. command parameters:
-B: If you need to overwrite the file, back up the file before overwriting.-F: force indicates that if the target file already exists, it is overwritten without asking;-I: if the destination file (destination) already exists, you will be asked if it is overwritten!-U: update is performed only when the target file already exists and the source file is upd
following table lists the related information:
PHP Version 5.5.13Configure Command './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql' '--prefix=/usr/local/php5' Server API Apache 2.0 HandlerVirtual Directory Support enabledConfiguration File (php.ini) Path /usr/local/php5/libLoaded Configuration File /usr/local/php5/lib/php.iniScan this dir for additional .ini files (none)Additional .ini files parsed (none) extension_dir/usr/local/php5/lib/php/extensions/no-debug-zts-20121
link to the file is lost.3. Command parameters:-B: Overwrite the previous backup if you need to overwrite the file.-f:force mandatory Meaning, if the target file already exists, will not be asked and directly covered;-I: If the target file (destination) already exists, you will be asked to overwrite it!-U: If the target file already exists and source is newer, update (update)-T:--target-directory=directory move all source arguments into directory, which is the target directory for the specified
the source files specified by each parameter to the destination directory. When you move a file across a file system, the MV copies the original file, and the link to the file is lost.3. Command parameters:-B: Overwrite the previous backup if you need to overwrite the file.-f:force mandatory Meaning, if the target file already exists, will not be asked and directly covered;-I: If the target file (destination) already exists, you will be asked to overwrite it!-U: If the target file already exist
Directorydu:cannot accessâ./proc/23692/task/23692/fd/39â : No such file or Directory0 ./proc11m ./sbin16k ./lost+found264k /home86m. /boot328g ./var4.0k. /dev0. /sys330g .Take a look at the occupancy in VAR (MySQL data is in Lib, www is site with some related backup)Lltotal 72drwxr-xr-x root root 4096 Sep 02:50./drwxr-xr-x root root 4096 Sep 23 02:45. /DRWXRWXRWX 3 root
the previous backup if you need to overwrite the file.-f:force mandatory Meaning, if the target file already exists, will not be asked and directly covered;-I: If the target file (destination) already exists, you will be asked to overwrite it!-U: If the target file already exists and source is newer, update (update)-T:--target-directory=directory move all source arguments into directory, which is the target directory for the specified MV, which is suitable for moving multiple source files to a
: remote_folderOrScp-r local_folder remote_ip: remote_folder1st user names are specified. After the command is executed, enter the user password;2nd user names are not specified. After the command is executed, enter the user name and password;
Copy from remote server to local server:The scp command remotely replicated to the local device is the same as the command above. You only need to swap the order of the two parameters after the command locally copied to the remote device.
Instance 1: copy
be written (write)x indicates that the file can be executed (if it is a program)Where: Rwx can also be replaced by numbersR------------4W-----------2X------------1-------------0Let's go:Represents the Add permission-Indicates delete permission= indicates a permission to make it uniqueWhen we all understand the above, then we often have some of the following permissions are easy to understand:-RW-------(600) Only the owner has read and write permissions-rw-r--r--(644) Only the owner has read and
be written (write)x indicates that the file can be executed (if it is a program)Where: Rwx can also be replaced by numbersR------------4W-----------2X------------1-------------0Let's go:Represents the Add permission-Indicates delete permission= indicates a permission to make it uniqueWhen we all understand the above, then we often have some of the following permissions are easy to understand:-RW-------(600) Only the owner has read and write permissions-rw-r--r--(644) Only the owner has read and
be written (write)x indicates that the file can be executed (if it is a program)Where: Rwx can also be replaced by numbersR------------4W-----------2X------------1-------------0Let's go:Represents the Add permission-Indicates delete permission= indicates a permission to make it uniqueWhen we all understand the above, then we often have some of the following permissions are easy to understand:-RW-------(600) Only the owner has read and write permissions-rw-r--r--(644) Only the owner has read and
you, hoping to help my friends later.N characters are omitted here .....
Ii. Solution
This database is backed up every morning and is retained for 30 days. The binlog retention time of the master database is 7 days.So it is easy to think of a way to recover the backup from the database in the early morning of, and then filter out all the changes and subsequent data from the early morning to 21:53:56 through the binlog of the primary database, once confirmed by the business, it can be discarded.
to be stored on the local host.-- Help online help.-- No-absolute-filenames use the relative path to create a file name.-- No-preserve-owner does not keep the owner of a file. Whoever unlocks the backup file will own those files.-Only-verify-crc: When the backup file adopts the CRC backup format, you can use this parameter to check whether each file in the backup file is correct.-- Quiet does not show how many blocks are copied.-- Sparse if a file contains a large number of consecutive 0 bytes,
directory name, there may be multiple source files or directory parameters. The mv command moves the source files specified by each parameter to the target directory. When a file is moved across file systems, the mv copies the file first, and then deletes the original file. The link to the file will also be lost. Www.2cto.com 3. Command Parameter:-B: If you want to overwrite the file, back up the file before overwriting. -F: force indicates that if the target file already exists, the file will
named nginx to save the compiled and installed files.
[Root @ CentOS local] # mkdir nginx [root @ CentOS local] # Total ll usage 960drwxr-xr-x. 2 root 6 February 24 16:18 bindrwxr-xr-x. 2 root 6 May November 5 2016 etcdrwxr-xr-x. 2 root 6 August 2016 gamesdrwxr-xr-x. 2 root 6 August 2016 includedrwxr-
Ls
Introduction :The LS command is used to display the target list, which is a high-usage command in Linux. The output information of the LS command can be colored highlighted to distinguish between different types of files.
Parameters:The directory or file to display
Options :-A: Show All files and directories[Email protected] ppp]# ls-a.Chap-secrets ip-down ip-up.ipv6to4 options peers. Eaptls-client ip-down.ipv6to4 ipv6-down options.pptpdbackup eaptls-server ip-up ipv6-up pap
target file (destination) already exists, you will be asked to overwrite it!-U: If the target file already exists and source is newer, update (update)-T:--target-directory=directory move all source arguments into directory, which is the target directory for the specified MV, which is suitable for moving multiple source files to a directory, when the target directory is in front, The source file is behind.4. Command instance:Example one: Renaming a fileCommand:MV Test.log Test1.txtOutput:[email
the previous backup if you need to overwrite the file.-f:force mandatory Meaning, if the target file already exists, will not be asked and directly covered;-I: If the target file (destination) already exists, you will be asked to overwrite it!-U: If the target file already exists and source is newer, update (update)-T:--target-directory=directory move all source arguments into directory, which is the target directory for the specified MV, which is suitable for moving multiple source files to a
the previous backup if you need to overwrite the file.-f:force mandatory Meaning, if the target file already exists, will not be asked and directly covered;-I: If the target file (destination) already exists, you will be asked to overwrite it!-U: If the target file already exists and source is newer, update (update)-T:--target-directory=directory move all source arguments into directory, which is the target directory for the specified MV, which is suitable for moving multiple source files to a
: Overwrite the previous backup if you need to overwrite the file.-f:force mandatory Meaning, if the target file already exists, will not be asked and directly covered;-I: If the target file (destination) already exists, you will be asked to overwrite it!-U: If the target file already exists and source is newer, update (update)-T:--target-directory=directory move all source arguments into directory, which is the target directory for the specified MV, which is suitable for moving multiple source
primary database, once confirmed by the business, it can be discarded. Or you can use other methods to find the data. But it is imperative to restore the database immediately.3. Check the backup and time point on the slave database of the backup:
Crontab-l
#0 3 ***/data/opdir/mysqlbak/backup_mysqldump.sh 6084>/data/opdir/mysqlbak/6084/mysql-bakup.log 2> amp; 1
The backup task was commented out.
View the backup file:
[root@localhost 6084]# lltotal 128drwxr-
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.