Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84317members
353478posts

DCO backup to additional location

EcoStruxure IT forum

A support forum for Data Center Operation, Data Center Expert, and EcoStruxure IT product users to share knowledge on installation, configuration, and general product use.

DCIM_Support
Picard
Picard
0 Likes
7
303

DCO backup to additional location

This question was originally posted on DCIM Support by Francis Thong on 2018-04-23


Hi,

Currently DCO allows daily backup to 1 location.

Is it possible to use schedule cron job to copy the backup file to another extra location.

If yes, how do we do it ?

 

Thanks

(CID:130098090)

7 Replies 7
DCIM_Support
Picard
Picard
0 Likes
0
303

Re: DCO backup to additional location

This comment was originally posted on DCIM Support by Christopherus Laurentius on 2018-04-23


Hi Francis,

Rather than copying the backup file, how about setting the backup to the remote location instead?

You can mount the remote location, and then set the backup to be done there.

How to configure backup

(CID:130098125)

DCIM_Support
Picard
Picard
0 Likes
4
303

Re: DCO backup to additional location

This answer was originally posted on DCIM Support by Francis Thong on 2018-04-23


I've already successfully configured to backup to the mounted NFS.

But We wanted to backup to 2 NFS. In the Webmin backup, I can only select to backup to 1 location.

(CID:130098112)

DCIM_Support
Picard
Picard
0 Likes
0
303

Re: DCO backup to additional location

This comment was originally posted on DCIM Support by Christopherus Laurentius on 2018-04-23


Something like 1 schedule to NFS folder1, and 2nd schedule to a different NFS folder 2?

 

I don't think that is available from the DCO webmin itself.

Might be possible by defining it directly on the cron job itself, from console...

 

(CID:130098119)

DCIM_Support
Picard
Picard
0 Likes
0
303

Re: DCO backup to additional location

This comment was originally posted on DCIM Support by Francis Thong on 2018-04-23


Any idea how to do it ?

Especially considering the first mounted NFS folder will have multiple backup and the 2nd cron job should just copy the latest backup to the 2nd mounted NFS folder.

(CID:130098134)

DCIM_Support
Picard
Picard
0 Likes
0
303

Re: DCO backup to additional location

This comment was originally posted on DCIM Support by Christopherus Laurentius on 2018-04-24


Have not tried this, but cron and rsync should do the trick:

https://superuser.com/questions/208591/rsync-n-newest-files-in-a-directory

rsync -a /origin /destination

and then schedule it to run with cron by running crontab -e and specifying

0 0 * * * /usr/bin/rsync -a /origin /destination

(CID:130098552)

DCIM_Support
Picard
Picard
0 Likes
0
303

Re: DCO backup to additional location

This comment was originally posted on DCIM Support by Francis Thong on 2018-05-03


Followed your instructions to console in and run the crontab -e and added the following code


0 0 * * * /usr/bin/rsync -a --delete /origin/ /destination

This will make the origin and destination directory in sync. After doing it, I found that it also appear in the webmin Scheduled Cron Jobs.

So I believe that we can just enter the command directly in the cron job from webmin without going into the console.

/usr/bin/rsync -a --delete /origin/ /destination

(CID:130682340)

DCIM_Support
Picard
Picard
0 Likes
0
303

🔒 Closed

This question is closed for comments. You're welcome to start a new topic if you have further comments on this issue.