)exceptOSError:Print "Unable to remove file:%s"%Path#traverse the input folder, query the file number_of_days days ago, delete---------------------defCleanup (number_of_days, path):"""removes files from the passed on path that is older than or equal to the Number_of_days"""Time_in_secs= Time.time ()-(Number_of_days * 24 * 60 * 60) """calculates the millisecond difference between the current time and number_of_days days ago""" forRoot, dirs, fil
For how recovery works, see the first blog on the Restoration topic:Http://fly1116.blog.51cto.com/8301004/1337681For a brief introduction to the fly. sh script used in the restoration process and other scripts, see the second blog on the Restoration topic:Http://fly1116.blog.51cto.com/8301004/1338316If the database is not in the archive State and there is no backup, you can use the operating system command rm to accidentally delete all data
/mysqladmin Ping >/dev/nullThen/app/mysql/mysql3306/bin/mysqladmin Flush-logsFiEndscript}4) Execute the following command to test whether the configuration is correct/usr/sbin/logrotate-f/etc/logrotate.d/mysql-log-rotateNote: You need to view the backed up compressed files This execution Gunzip file_name.gz can5) timed execution (early morning execution)# Vim/etc/crontab* * * * root/usr/sbin/logrotate-f/etc
to replace ibdata1, so after I replace it, I cannot start my Mysql. the prompt is:
start:failed to start
How can I restore my previous data?
Reply content: Background
My website was running all the time. suddenly one day I found that my website had crashed. After troubleshooting, my database had crashed.Login to Mysql:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
To restart Mysql, the following error occurs:
stop:unknown instancesta
Let's take a look at pea pods. Where is the backup file?
Click on the pea pod in the upper right corner-set "-" automatic backup, you can view and modify the backup path in the backup path.
Please click on the desktop shortcut "xx
I put the Mac system on a 128G SSD SSD, the results found that my User name folder has more than 20 g of unknown files, but also show that I would like to save some space on the SSD, I would like to use these potentially useful files to my 250G mechanical hard drive.Enter "Go to Folder" via Shift+command+g [~/library/application support], go to this hidden folder, a sub-folder to look over, Found the culpri
Tags: process RAC ready alt Exchange Mutual picture Bubuko TFTP serviceWe will back up the configuration file and system image of the switch or router directly to the TFTP server, so we need to prepare a TFTP server1 We need to give the server an IP address, configure an IP address for the router's F0/1 port, and the router and the server can ping each other2. Configure the router's boot configuration fileIn privileged modeCopy running-config TFTP save configuration file
directories in the directory to transfer to the system partition of the new system In the "Windows.old" folder. If there is a problem with the new system, you can extract the file to replace the entire system or a single file.
After using WIN8 for a period of time, if you confirm that the original files and settings are already in their corresponding locations in the new system, you can remove the Windows.old folder for secure reclaim of disk space
! "/>Checkpoint EventCheckpoints are equivalent to backup points, and if this is more likely to recover faster when a problem occurs because there is no need to recover longer and more records, it is usually recorded every three secondsIf log changes are recordedor manually request a checkpoint.650) this.width=650; "height=" 186 "src=" http://b287.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/ dfeqhqhktxpwc1tfemyrl*z3wtpfffigx43yq*ywv8m
synchronizing the files:
After that, we can go to the client F disk corresponding to the current view of the synchronization over the file, hehe.
Of course Cwrsync is the incremental and modified synchronization, if you modify the corresponding files on the server side, the synchronization will only synchronize the modified
process is running;
The FD directory is a symbolic connection of the files that the process opened or used.
------------------------------------------------------------------
Cat/proc/xxxx/environ |grep PWD
View the absolute path of the command.
Because of problems such as backup, different versions, and so on, there are many Nginx dire
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.