Thread: Regular backup by date. Please correct me the command
i've created script backup zimbra folder according this
but exact command doesn't seem work on ubuntu. here's scriptcode:http://www.youtube.com/watch?v=xhuksahpbxw&feature=related
the copied folder names "date+%d%m%y" not date require. pleasecode:!/bin/bash service zimbra stop cp -rp /opt/zimbra /zimbkp/'date+%d%m%y'/ service zimbra start
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
Post a Comment