[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help! Accidentally started deleting /usr



And of course a good impovement for this would be to gzip first your file
then add it using tar to a backup file an finally remove it..

Just play with it..

> #!/bin/bash
> backup_dir=/usr/local/share/secure/backup
> 
> for i in $*
> do
>     # fix: comprobe first if the file exist in the backup and rename
>     #      as needed
>     mv $i $backup_dir # dont rm just move.
> done
> exit 0

Regards

Roberto

------------------------------------------------------------------------
Roberto Diaz <rdiazmartin@vivaldi.dhis.org>
http://vivaldi.dhis.org
Powered by GNU running on a Linux kernel.
Powered by Debian (The real wonder)

Concerto Grosso Op. 3/8 A minor
Antonio Vivaldi (so... do you need beautiful words?)
------------------------------------------------------------------------



Reply to: