Re: [PLUG] Cron advice needed

2016-04-26 Thread John Jason Jordan
On Tue, 26 Apr 2016 22:18:02 -0700 Bill Barry dijo: >I pasted that line into my crontab and it works fine. It must be some >other line in the file. If that's the only used line in the file, >delete everything and type in the relevant line again. That did it. I looked over

Re: [PLUG] Cron advice needed

2016-04-26 Thread Bill Barry
On Tue, Apr 26, 2016 at 10:00 PM, John Jason Jordan wrote: > On Tue, 26 Apr 2016 21:02:49 -0700 > Ali Corbin dijo: > > >Another possibility is that the additional 9 characters made your text > >editor decide to wrap the line, inserting a carriage

Re: [PLUG] Cron advice needed

2016-04-26 Thread John Jason Jordan
On Tue, 26 Apr 2016 21:02:49 -0700 Ali Corbin dijo: >Another possibility is that the additional 9 characters made your text >editor decide to wrap the line, inserting a carriage return. It's not an o, it's definitely a zero. And besides, it worked before, and I didn't

Re: [PLUG] Cron advice needed

2016-04-26 Thread Ali Corbin
Another possibility is that the additional 9 characters made your text editor decide to wrap the line, inserting a carriage return. On Tue, Apr 26, 2016 at 8:55 PM, Don Buchholz wrote: > Are you sure it's a zero and not the letter 'O'? Are there any spaces to > the

Re: [PLUG] Cron advice needed

2016-04-26 Thread Michael Rasmussen
> On April 26, 2016 8:50:30 PM PDT, John Jason Jordan > wrote: > >I spoke to soon. It worked fine when I ran it directly from the command > >line, but crontab pukes it up: > >This is the line in crontab: > > > >0 3 * * * rsync -avx --delete /home/jjj/Mail/

Re: [PLUG] Cron advice needed

2016-04-26 Thread Don Buchholz
Are you sure it's a zero and not the letter 'O'? Are there any spaces to the left of the '0'? On April 26, 2016 8:50:30 PM PDT, John Jason Jordan wrote: >On Tue, 26 Apr 2016 19:56:14 -0700 >John Jason Jordan dijo: > >>>You probably would benefit from

Re: [PLUG] Cron advice needed

2016-04-26 Thread John Jason Jordan
On Tue, 26 Apr 2016 19:56:14 -0700 John Jason Jordan dijo: >>You probably would benefit from the --delete flag. From the man page, >>this flag will "delete extraneous files from dest dirs" which I >>believe is what you want to accomplish. > >OK, I changed it to: > >

Re: [PLUG] Cron advice needed

2016-04-26 Thread John Jason Jordan
On Tue, 26 Apr 2016 16:22:45 -0700 David dijo: >>> rsync -avx /home/jjj/Mail/ /media/jjj/Data/Mail >>> >>> Don't remove the trailing slash on the source path. It tells rsync >>> to copy the contents of /home/jjj/Mail to /media/jjj/Data/Mail/, as >>> opposed to creating a

Re: [PLUG] Cron advice needed

2016-04-26 Thread Don Buchholz
On 4/26/2016 4:05 PM, John Jason Jordan wrote: > On Tue, 26 Apr 2016 11:53:52 -0700 > Paul Mullen dijo: > >> This is a job for rsync, anyhow. The following command should do >> exactly what you want: >> >> rsync -avx /home/jjj/Mail/ /media/jjj/Data/Mail >> >> Don't remove the

Re: [PLUG] Cron advice needed

2016-04-26 Thread David
On 04/26/2016 04:05 PM, John Jason Jordan wrote: > On Tue, 26 Apr 2016 11:53:52 -0700 > Paul Mullen dijo: > >> This is a job for rsync, anyhow. The following command should do >> exactly what you want: >> >> rsync -avx /home/jjj/Mail/ /media/jjj/Data/Mail >> >> Don't remove

Re: [PLUG] Cron advice needed

2016-04-26 Thread John Jason Jordan
On Tue, 26 Apr 2016 11:53:52 -0700 Paul Mullen dijo: >This is a job for rsync, anyhow. The following command should do >exactly what you want: > > rsync -avx /home/jjj/Mail/ /media/jjj/Data/Mail > >Don't remove the trailing slash on the source path. It tells rsync to >copy

Re: [PLUG] Cron advice needed

2016-04-26 Thread David
On 04/26/2016 10:45 AM, John Jason Jordan wrote: > On Sat, 23 Apr 2016 09:36:31 -0700 > Galen Seitz dijo: > >> On 04/23/16 09:22, John Jason Jordan wrote: >>> Using Russel's advice and yours above I created the crontab (using >>> nano) and added the following command: >>>

Re: [PLUG] Cron advice needed

2016-04-26 Thread Robert Citek
On Tue, Apr 26, 2016 at 11:53 AM, Paul Mullen wrote: > On Tue, Apr 26, 2016 at 10:45:08AM -0700, John Jason Jordan wrote: > > According to man cp -auf is what I should be using for what I want > > the command to so, but apparently there is something that I am not > >

Re: [PLUG] Cron advice needed

2016-04-26 Thread Rich Shepard
On Tue, 26 Apr 2016, Paul Mullen wrote: > This is a job for rsync, anyhow. The following command should do > exactly what you want: > > rsync -avx /home/jjj/Mail/ /media/jjj/Data/Mail That's what I was going to suggest. Using rsync copies only changes so it will keep your media/ directory