[ncolug] Re: Bash One Liner for Backup File

  • From: Chuck <cstickelman@xxxxxxxxxx>
  • To: ncolug@xxxxxxxxxxxxx
  • Date: Sat, 13 Feb 2016 21:38:48 -0500

On Fri, 2016-02-12 at 23:13 -0500, Rob Gibson wrote:

I guess I should have clarified.  The backups I am referring to a
simple 
single-file backups before making changes when doing system 
administration tasks, rather than a comprehensive long-term backup
solution.

Thanks,
Rob

On 02/12/2016 12:08 PM, Jim Willeke wrote:
I agree, rsync is a better choice for these operations.
--times                 preserve modification times

Can do incremental or full backups.

Runs as a command or a client-to-damen process.

There are several similar scripts using rsync that will
perform  (at
least nearly) any backup conditions you require.
https://blog.interlinked.org/tutorials/rsync_time_machine.html

https://github.com/samdoran/rsync-time-machine/blob/master/rsync-ti
me-machine.sh



...
--
-jim
Jim Willeke





Yes, yes!  I often keep a few old copies of configuration files on-
hand. Having a date/time file-name node helps keep track of them. At
most the old copies are going to get tossed in a separate sub-
directory.

Attachment: signature.asc
Description: This is a digitally signed message part

Other related posts: