Results 1 to 3 of 3

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

  1. #1
    Bullz3y3 is offline Active Member
    Join Date
    Feb 2012
    Posts
    25
    Rep Power
    3

    Unhappy 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
    But exact command doesn't seem to work on ubuntu. here's the script

    Code:
    !/bin/bash
    service zimbra stop
    
    cp -rp /opt/zimbra /zimbkp/'date+%d%m%Y'/
    
    service zimbra start
    The copied folder will names as "date+%d%m%Y" not the date I require. Please help

  2. #2
    malayo is offline Special Member
    Join Date
    Apr 2011
    Posts
    117
    Rep Power
    4

    Default

    Quote Originally Posted by Bullz3y3 View Post
    I've created a script for backup up my Zimbra folder according to this
    ]!/bin/bash
    service zimbra stop

    cp -rp /opt/zimbra /zimbkp/'date+%d%m%Y'/

    service zimbra start
    [/CODE]
    use backtick not singlequote. it's the key on the left of number one and above Tab

    like this
    Code:
    `date +%d%m%Y`
    try that

  3. #3
    Bullz3y3 is offline Active Member
    Join Date
    Feb 2012
    Posts
    25
    Rep Power
    3

    Default

    Oh thank you it works

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. i made a mess 4.5.6 -> 4.5.10 to a future 5.0 FOSS
    By innercy in forum Installation
    Replies: 7
    Last Post: 01-09-2008, 07:05 PM
  2. Server platform change RH to Ubuntu issues
    By marke in forum Administrators
    Replies: 5
    Last Post: 11-07-2007, 12:27 PM
  3. Mysql error on install
    By tommygun in forum Installation
    Replies: 17
    Last Post: 05-29-2007, 09:29 PM
  4. ZIMBRA!!!!! Error zmcontrol status and others
    By orison in forum Installation
    Replies: 8
    Last Post: 02-03-2007, 07:52 PM
  5. Zimbra Upgrade FAILED Badly
    By kelley.ch in forum Installation
    Replies: 1
    Last Post: 09-04-2006, 04:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •