Regular backup by date. Please correct me the command
I've created a script for backup up my Zimbra folder according to this
Code:
http://www.youtube.com/watch?v=xhUksAhpBxw&feature=related Code:
!/bin/bash |
You need to use accent quotes to execute a command (date), you missed a space between the command and its parameters, and you should single quote the parameters:
Code:
cp -rp /opt/zimbra /zimbkp/`date '+%d%m%Y'`/ |
In addition to the above, $(..) is highly recommended over `..` for embedded commands.
You might also want to consider using the -t option in cp and mv instead, to explicitly define the target directory. At least in scripts. Code:
cp -rp -t "/zimbkp/$( date '+%d%m%Y' )/" "/opt/zimbra" |
hi friends , how are you ?
i am very very new to linux . in wily LPIC1 study Guide book-at page 51 , it reads : #rpm -uvh samba-server-3.0.25b-4.5mdv2008.0.x86_64.rpm but i don't know what?can someone help me please ? |
Quote:
|
All times are GMT -5. The time now is 09:04 PM. |