Backing up Ubuntu

Mike Marchywka marchywka at hotmail.com
Mon Jul 1 22:14:09 UTC 2019


On Mon, Jul 01, 2019 at 11:54:45PM +0200, Ralf Mardorf via ubuntu-users wrote:
> On Mon, 1 Jul 2019 21:03:05 +0000, Mike Marchywka wrote:
> >cp -rpuv
> 
> Here we go, even a simple command such as cp already isn't that easy to
> use. From the manual page:
> 
>   -a, --archive
>               same as -dR --preserve=all
> 
>   --preserve[=ATTR_LIST]
>               preserve the specified attributes (default:
>               mode,ownership,timestamps), if possible additional
>               attributes: context, links, xattr, all
> 
> I'm in favour of using 'sudo cp -ai', the 'i' option isn't necessarily

I think originally for archive I was going to use either tar or zip
and just freshen the zip instead of just copy to an ssd ( probably ext3)
"image" ( not really a dd image but all the files there). This is handy
so I can do diffs from checkpoints when things get messed up
without digging into an archive although unzipping one file it not a big deal. 

Again, pointing to "primitive works"... 


> needed, but doesn't harm. The 'v' option IMO is quite useless, but it
> doesn't harm to log the output of the exit status by
> '; echo $? > log.txt'.
> 
> I'm puzzled regarding '2>& 1 | tee -a "$lf"'

I just dumped everthing into a logfile, hence the -v 
but yeah checking return status is probably a good idea.


> 
> However, you are just making a backup of a user's data, this is
> relatively safe, even on a running system, but it's neither completely
> safe, nor a backup of the whole install.
>
 You want a utility that can do a consistent backup of a running DB?
What about other arbitrary applications? This has to be app specific
or a huge mess. 


 
> While I'm in favour of using cp or tar, I strongly disagree that those
> are fast, let alone that I'm using USB3, too and it's definitively not
> fast.
>

Its a matter of degree - I was just surprised it was as fast as it was.
 
> I need around 4 hours to regularly backup just the most important
> things from internal SSDs, to an external USB3 HDD. User's might need
> to backup different amounts of data ;) and there are several
> bottlenecks, USB3 for sure is one of those bottlenecks.

Trying to backup the MBR everytime you get a "snapshot" of a Tb DB
seems like it may be asking a bit much... 

> 
> 
> 
> 
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

-- 

mike marchywka
306 charles cox
canton GA 30115
USA, Earth 
marchywka at hotmail.com
404-788-1216
ORCID: 0000-0001-9237-455X




More information about the ubuntu-users mailing list