Discussion:
[rsnapshot-discuss] hard link for the first copy itself
Rakesh Sankeshi
2016-10-12 17:51:14 UTC
Permalink
how to get the first copy with hard links itself to avoid using the double
the space?

BTW, I need it on ext4.

Thanks!
Scott Hess
2016-10-13 21:09:14 UTC
Permalink
Post by Rakesh Sankeshi
how to get the first copy with hard links itself to avoid using the double
the space?
Do you mean hardlinks to the originals?

This is a bad idea for a couple reasons. It means that changes to the
original files will be propagated into the snapshot - some programs arrange
file updates in a way that this won't happen, but many programs do not
(perhaps even most programs do not). Furthermore, storing the snapshot on
the same filesystem as the original data means that it is subject to many
of the same dangers as the original data. In fact, I would recommend not
even storing the snapshot on the same computer system as the original data.

That said ... if you really want to do it, manually cp -al from the
command-line. This can be challenging if you're trying to replicate the
root filesystem, since the target is also in the root filesystem, it might
be good enough to just replicate all of the contents of root individually,
skipping the snapshot dir. Or you could perhaps figure out a way to use
rsync with --link-dest to accomplish this, which would allow --exclude to
prevent recursing into the snapshot.

-scott
p***@chubb.wattle.id.au
2016-10-13 21:48:35 UTC
Permalink
Scott> [1 <multipart/alternative (7bit)>] [1.1 <text/plain; UTF-8
Scott> (7bit)>] On Wed, Oct 12, 2016 at 10:51 AM, Rakesh Sankeshi
Post by Rakesh Sankeshi
how to get the first copy with hard links itself to avoid using the
double the space?
This is an incredibly bad idea, as it means that if your original is
corrupted then your backup will be as well ... which kind of defeats
the purpose of making a backup. A link just provides another name for
the same underlying data.


Peter C
Rakesh Sankeshi
2016-10-18 22:26:47 UTC
Permalink
okay, thanks for all the inputs.

I will avoid using the hard link for the first copy
Post by p***@chubb.wattle.id.au
Scott> [1 <multipart/alternative (7bit)>] [1.1 <text/plain; UTF-8
Scott> (7bit)>] On Wed, Oct 12, 2016 at 10:51 AM, Rakesh Sankeshi
Post by Rakesh Sankeshi
how to get the first copy with hard links itself to avoid using the
double the space?
This is an incredibly bad idea, as it means that if your original is
corrupted then your backup will be as well ... which kind of defeats
the purpose of making a backup. A link just provides another name for
the same underlying data.
Peter C
Continue reading on narkive:
Loading...