EcoStruxure IT forum
Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 04:46 PM . Last Modified: 2024-04-05 12:07 AM
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)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 04:46 PM . Last Modified: 2024-04-05 12:07 AM
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.
(CID:130098125)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 04:46 PM . Last Modified: 2024-04-05 12:07 AM
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)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 04:47 PM . Last Modified: 2024-04-05 12:07 AM
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)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 04:47 PM . Last Modified: 2024-04-05 12:07 AM
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)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 04:47 PM . Last Modified: 2024-04-05 12:07 AM
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)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 04:47 PM . Last Modified: 2024-04-05 12:07 AM
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)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-04 04:47 PM . Last Modified: 2023-10-22 01:43 AM
This question is closed for comments. You're welcome to start a new topic if you have further comments on this issue.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.