Setup debian rsync mirror


















Have a look at. We want to automate the mirroring, that is why we create a cron job for it on mirror. Run crontab -e as root :. Your rsync location might differ. You should also add the parameter --numeric-ids to keep the value of the uid and gid of the file when its transfer.

I am mentioning rsync. I use rsync and Unison, and sftp to automatically backup my most important files to a 4 GB offsite filesystem at rsync. If you are using ssh on a non-standard port quote the ssh part of the commands and include the port option. For example Thank you for the tutorial. I have port 22 closed for security reasons on the main server. How can I add another port into your script? You can modify the script like so:.

This feature is only available to subscribers. Get your subscription here. Log in or Sign up. Suggested articles. As most websites these days are dynamic, you need to use different tools for mirroring.

I use wget to to create a mirror of my dyanmic pages. Backup etch lenny rsync. Author admin. Comments 5. Posted on April 15, Awesome tutorial, extremely helpful, clean and accurate.

Posted on September 4, Thank you very much. Really superb tutorials!! Posted on November 20, Really Helpful…. To keep your mirror up-to-date, you have to run ftpsync sync:archive:php. We recommend that you run it from cron four times a day with a cron entry like this one assuming that the system time is in UTC :.

The freexian package repository is updated at 0h, 6h, 12h, 18h all times in UTC and you want to avoid updating your local mirror at those times. Thus the suggestion is to use 2h, 8h, 14h, 20h.

You are also invited to tweak the precise minute 17 in the example above to a random value between 0 and 59 to spread the load so that not all servers connect at the same time. The key registered is owned by Freexian and will only be able to run the ftpsync script which starts the mirroring process.



0コメント

  • 1000 / 1000