Doing rsync in cron you might add the --log-file=filename option On Sat, Apr 15, 2023, 9:58 AM Vince Winter <[email protected]> wrote:
> If you have a trailing / on src, it will only copy contents. If you leave / > off on src, it copy the directory. > > -a is archive mode. Which is likely fine unless you need more. > > This should be fine for a basic rsync cronjob. > > <Time of day> <day of week/month> <user> rsync -a <src> <dest> > > You can get much more complex with rsync if you want but unlikely to be > needed. > > On Sat, Apr 15, 2023, 17:59 Rich Shepard <[email protected]> wrote: > > > On Sat, 15 Apr 2023, Randy Bush wrote: > > > > > i am also too subtle. you might use the man page and check out those > > > parameter choices. > > > > randy, > > > > I saw in the man page that > > --archive, -a archive mode is -rlptgoD (no -A,-X,-U,-N,-H) > > which looked like your first example. > > > > Regards, > > > > Rich > > > > >
