Skip to main content

Thread: Regular backup by date. Please correct me the command


i've created script backup zimbra folder according this
code:
http://www.youtube.com/watch?v=xhuksahpbxw&feature=related
but exact command doesn't seem work on ubuntu. here's script

code:
!/bin/bash service zimbra stop  cp -rp /opt/zimbra /zimbkp/'date+%d%m%y'/  service zimbra start
the copied folder names "date+%d%m%y" not date require. please

you need use backquotes:

code:
cp -rp /opt/zimbra /zimbkp/`date+%d%m%y`

please note backquote "`" instead of single quote "'"


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments [ubuntu] Regular backup by date. Please correct me the command


Ubuntu

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?