Re: [PLUG] rsync in a cron job

2018-11-15 Thread Tomas Kuchta
I have found this regular rsync aproach inadequate with constant babysitting sideffects. These are desktops, so network filesystem would resolve this and more. On laptops, I would recommend to use something like NextCloud synchronizing to a master location. Those two options do work better for d

Re: [PLUG] rsync in a cron job

2018-11-15 Thread Rich Shepard
On Thu, 15 Nov 2018, Smith, Cathy wrote: Just as a suggestion, get your backup running manually first before running from cron. That reduces the time for troubleshooting. Understand what your rsync is doing. Validate that your backup on the destination is good. If you are going to use ssh keys,

Re: [PLUG] rsync in a cron job

2018-11-15 Thread Larry Brigman
Even the shell in cron could be different from your login shell. Only the location running cron should be affected. The ~/ is a shell alias pointing to the $HOME variable. On Thu, Nov 15, 2018 at 10:07 AM Rich Shepard wrote: > On Thu, 15 Nov 2018, Larry Brigman wrote: > > > Note that none of yo

Re: [PLUG] rsync in a cron job

2018-11-15 Thread Smith, Cathy
plug-boun...@pdxlinux.org On Behalf Of Rich Shepard Sent: Thursday, November 15, 2018 10:07 AM To: Portland Linux/Unix Group Subject: Re: [PLUG] rsync in a cron job On Thu, 15 Nov 2018, Larry Brigman wrote: > Note that none of your shell variables from your login will be set > when you run f

Re: [PLUG] rsync in a cron job

2018-11-15 Thread Rich Shepard
On Thu, 15 Nov 2018, Smith, Cathy wrote: There are a lot of examples available if you google for rsync tutorial or rsync examples. Search for examples of using rsync for backups. Thank you, Cathy. Rich ___ PLUG mailing list PLUG@pdxlinux.org http:

Re: [PLUG] rsync in a cron job

2018-11-15 Thread Smith, Cathy
AM To: Portland Linux/Unix Group Subject: Re: [PLUG] rsync in a cron job On Thu, 15 Nov 2018, Larry Brigman wrote: > Note that none of your shell variables from your login will be set > when you run from cron. Larry, Would this affect synchronizing files in ~/ on both hosts? Th

Re: [PLUG] rsync in a cron job

2018-11-15 Thread Smith, Cathy
15, 2018 7:53 AM To: plug@pdxlinux.org Subject: [PLUG] rsync in a cron job I want to update ~/ on the new desktop with changes made in ~/ on the old desktop using rsync in a daily cron job. The old desktop has a directory ~/data while the newdesktop has a /data partition separate from /home.

Re: [PLUG] rsync in a cron job

2018-11-15 Thread Rich Shepard
On Thu, 15 Nov 2018, Larry Brigman wrote: Note that none of your shell variables from your login will be set when you run from cron. Larry, Would this affect synchronizing files in ~/ on both hosts? Thanks, Rich ___ PLUG mailing list PLUG@pdxlin

Re: [PLUG] rsync in a cron job

2018-11-15 Thread Rich Shepard
On Thu, 15 Nov 2018, Louis Kowolowski wrote: You might be interested in looking at syncthing. Its designed to replicate things from 1 place to another. You can even set it up such that one is the "master" and it doesn't accept changes from other nodes. Louis, I will look at synthing. Rega

Re: [PLUG] rsync in a cron job

2018-11-15 Thread Larry Brigman
Note that none of your shell variables from your login will be set when you run from cron. On Thu, Nov 15, 2018, 7:53 AM Rich Shepard I want to update ~/ on the new desktop with changes made in ~/ on the > old > desktop using rsync in a daily cron job. The old desktop has a directory > ~/data

Re: [PLUG] rsync in a cron job

2018-11-15 Thread Louis Kowolowski
You might be interested in looking at syncthing. Its designed to replicate things from 1 place to another. You can even set it up such that one is the "master" and it doesn't accept changes from other nodes. Regarding rsync: If you exclude something from 1 rsync job, and you still want it copie

[PLUG] rsync in a cron job

2018-11-15 Thread Rich Shepard
I want to update ~/ on the new desktop with changes made in ~/ on the old desktop using rsync in a daily cron job. The old desktop has a directory ~/data while the newdesktop has a /data partition separate from /home. There is an --exclude option to rsync and I'm not sure where it should go i