English 中文(简体)
网络排雷自动清理
原标题:Webmin Automatic Backup Cleanup

我每天都在利用网络支持。 除非每次15天,否则,我想自动删除7天以上的所有备份。 我猜测,我需要写某种文字来做这项工作,任何人都知道如何用网吧或已经用过的文字。

Summary: - Daily Backups are already being made. - Backups need to be retained for 7 days from current date, and removed otherwise UNLESS it is every 15 days.

增 编

问题回答

拆除7天以上档案的1个线人:

find ${path_to_files} -daystart -maxdepth 1 -mtime +7 -exec rm -rf {} ; &>/dev/null

也许你可以根据你们的需要加以调整,而忽略确切为x%15天的文件......





相关问题
Backing up my database is taking too long

On a windows mobile unit, the software I m working on relies on a sdf file as it s database. The platform that the software is targeted towards is "less than optimal" and hard resets every once and a ...

Cognos LAE Backup Automation (Batch File?)

Within Cognos 7.4 security.. one would create an LAE file to export all their users... directions here... http://www.cognos-install.co.uk/articles/backups/access_manager_export_to_lae.asp Now you ...

backup SQL Server 2005 database without data

I have one stored procedure to backup the database. It will backup metadata as well as data. Is there any option to back up the database with out data. ie, back up only the schema (Empty tables). I ...

SQL Server 2008 Auto Backup

We want to have our test servers databases updated from our production server databases on a nightly basis to ensure we re developing on the most recent data. We, however, want to ensure that any fn, ...

mysql dump stops when a row is updated

When i try to get a dump of a mysql database, the dump stops when a row in it is updated. How can i prevent that? I already tried following options with no result: -f (forces continu even when error)...

热门标签