Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /home/pbuc/public_html/forum/mods/ext_phorummail/ezc/Base/src/ezc_bootstrap.php on line 36

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; KeyCAPTCHA_CLASS has a deprecated constructor in /home/pbuc/public_html/forum/mods/keycaptcha/keycaptcha.php on line 108
Skipping daily.0 (ie. not saving todays increment)
Welcome! » Log In » Create A New Profile

Skipping daily.0 (ie. not saving todays increment)

Posted by Anonymous 
Skipping daily.0 (ie. not saving todays increment)
October 25, 2014 06:36AM
Dear all,

I have a use case where we backup our cPanel server to /backup and once finished be use rsnapshot to /rsnapshot.

After rsnapshot is run, /rsnapshot/daily.0 and /backup hold the exact same content.

Is there a way not to create /rsnapshot/daily.0 and switch directly to /rsnapshot/daily.1?

Since /backup is a backup itself it won't change during the day :)

Let me know if this is unclear.
Tropically yours,[img]http://cdn.cahri.net/sig/julien.png[/img][b]Julien Tessier[/b]
[b]Directeur technique ninja[/b]

Tél Réunion : +262 262 02 47 21
Tél Maurice : +230 453 92 91
Mobile : +230 54 94 75 04
Email : julien < at > cahri.com ([email]julien < at > cahri.com[/email])[url=http://www.cahri.com/sig/pl.php][/url][url=http://www.cahri.com/][/url][b]L&rsquo;agence digitale bien dans ses tongs
[url=http://www.cahri.com/]Découvrez l&rsquo;agence sur www.cahri.com[/url][/b][b]RÉUNION[/b]
211, avenue du Général Lambert
97436 Saint-Leu
Tél : +262 262 02 47 27
reunion < at > cahri.com ([email]reunion < at > cahri.com[/email])[b]MAURICE[/b]
99, avenue des Tourtereaux
Villa Mevin - Flic en Flac
Tél : +230 453 92 90
mauritius < at > cahri.com ([email]mauritius < at > cahri.com[/email])[url=http://www.facebook.com/cahribook][/url][url=http://www.twitter.com/cahritweet][/url][url=http://www.pinterest.com/cahrinterest][/url][url=http://www.instagram.com/instacahri][/url]100% des pixels ayant servi à rédiger cet email sont issus du recyclage numérique
Skipping daily.0 (ie. not saving todays increment)
October 25, 2014 11:08AM
On Sat, Oct 25, 2014 at 09:24:12AM +0400, Julien Tessier (julien < at > cahri.com) wrote:

[quote]Dear all,

I have a use case where we backup our cPanel server to /backup and once
finished be use rsnapshot to /rsnapshot.

After rsnapshot is run, /rsnapshot/daily.0 and /backup hold the exact same
content.

Is there a way not to create /rsnapshot/daily.0 and switch directly to
/rsnapshot/daily.1?
[/quote]
I assume the idea is to save disk space and that your cPanel is hosted
so that you can't back it up directly with rsnapshot.

Short answer: No.

Long answer: You really can't do that with rsnapshot, and even
if you could, it wouldn't be worth it.
I suspect you're thinking of using /backup as if it were daily.0,
but it won't work because they're are *not* the same:
the file contents are, but in daily.0 they're hardlinked
to earlier rsnapshot generations, and there's no way
to make cPanel's own backup maintain those.
In theory you could always rm -rf daily.0 (or .sync)
before backup, rename /backup as daily.0 and recreate
the links by some creative hack, but even if you could
make it work, it would not save much disk space:
you'd still need space for full (unlinked) copies
of the files in /backup before you get around to
hardlinking them.

If I misunderstood your intention and the idea wasn't
just trying to save disk space, please explain.

--
Tapani Tarvainen

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Skipping daily.0 (ie. not saving todays increment)
October 25, 2014 12:19PM
2014-10-25 6:24 GMT+01:00 Julien Tessier <julien < at > cahri.com ([email]julien < at > cahri.com[/email])>:
[quote]Is there a way not to create /rsnapshot/daily.0 and switch directly to /rsnapshot/daily.1?

Since /backup is a backup itself it won&#39;t change during the day :)

Let me know if this is unclear.

[/quote]

It&#39;s unclear why you want to do this.

poc
Skipping daily.0 (ie. not saving todays increment)
October 25, 2014 01:51PM
Dear Patrick and Tapano,

/backup and /rsnapshot/daily.0 hold the same content so my aim is indeed to save disk space (right now we use more or less twice as much space as needed).

/backup is the standard generated by cPanel which includes static files but also database dumps and various other needed information in case we need to recover data. We need the backups in this format, so we can&#39;t simply point rsnapshot to the actual files on the live server (as we do with regular LAMP instances).

Another idea: instead of copying /backup to /rsnapshot/daily.0, could rsnapshot use hard links here as well? Both directories are on the same server and the same filesystem.

Best regards,

Julien
Skipping daily.0 (ie. not saving todays increment)
October 25, 2014 02:07PM
On Sat, Oct 25, 2014 at 9:48 AM, Julien Tessier <julien < at > cahri.com> wrote:
[quote]Dear Patrick and Tapano,

/backup and /rsnapshot/daily.0 hold the same content so my aim is indeed to
save disk space (right now we use more or less twice as much space as
needed).

/backup is the standard generated by cPanel which includes static files but
also database dumps and various other needed information in case we need to
recover data. We need the backups in this format, so we can't simply point
rsnapshot to the actual files on the live server (as we do with regular LAMP
instances).

Another idea: instead of copying /backup to /rsnapshot/daily.0, could
rsnapshot use hard links here as well? Both directories are on the same
server and the same filesystem.

Best regards,

Julien
[/quote]
As long as nothing *else* touches /backup. The very real danger with
"oh, I'll link rsnapshot backups to this other procedure" is when some
other procedure touches the rsnapshot repos and corrupts *all* the
existing rsnapshot bakcups.

Been there, done that, have the scar material from another admin
exposing the rsnapshot backups to NFS write permissions and the other
admin didn't realize what he was touching from a symlink to the
mounted 'daily.0'.

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Skipping daily.0 (ie. not saving todays increment)
October 25, 2014 02:18PM
On Sat, Oct 25, 2014 at 05:48:48PM +0400, Julien Tessier (julien < at > cahri.com) wrote:

[quote]/backup and /rsnapshot/daily.0 hold the same content so my aim is indeed to
save disk space (right now we use more or less twice as much space as
needed).
[/quote]
Recommendation: Forget it. Disk space is cheap.

[quote]/backup is the standard generated by cPanel which includes static files but
also database dumps and various other needed information in case we need to
recover data. We need the backups in this format, so we can't simply point
rsnapshot to the actual files on the live server (as we do with regular
LAMP instances).
[/quote]
Of course rsnapshot can dump databases directly by itself, but
I guess you want a backup that can be easily restored by cPanel tools.

And in that case you're out of luck: it can't be done. Sorry.
Other than by hacking cPanel sources, that is.
(Hacking rsnapshot won't help.)

[quote]Another idea: instead of copying /backup to /rsnapshot/daily.0, could
rsnapshot use hard links here as well?
[/quote]
The problem is that when cPanel writes its backups it doesn't
know anything about rsnapshot and the disk space is wasted at
that point. Even if you were to write an extra script that
links stuff in /backup and daily.0, it'd be too late,
unless you do it inside (during) the cPanel backup.
(Theoretical solution: a program that runs in parallel with
cPanel backup and hardlinks files backed up immediately,
one at a time. Probably impossible to do in practice.)

[quote]Both directories are on the same server and the same filesystem.
[/quote]
I trust that's not the same machine as where the production
data is.

--
Tapani Tarvainen

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Skipping daily.0 (ie. not saving todays increment)
October 25, 2014 02:20PM
On Sat, Oct 25, 2014 at 10:04:56AM -0400, Nico Kadel-Garcia (nkadel < at > gmail.com) wrote:

[quote]On Sat, Oct 25, 2014 at 9:48 AM, Julien Tessier <julien < at > cahri.com> wrote:
[/quote]
[quote][quote]Another idea: instead of copying /backup to /rsnapshot/daily.0, could
rsnapshot use hard links here as well? Both directories are on the same
server and the same filesystem.
[/quote][/quote]
[quote]As long as nothing *else* touches /backup.
[/quote]
Hmm. Yes, on second thought theoretically it could work, having cPanel
write directly over the hardlinked files. But that indeed falls to the
realm of "You *REALLY* don't want to do that".

[quote]The very real danger with "oh, I'll link rsnapshot backups to this
other procedure" is when some other procedure touches the rsnapshot
repos and corrupts *all* the existing rsnapshot bakcups.
[/quote]
Yep. Don't take such chances with backups.

--
Tapani Tarvainen

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Skipping daily.0 (ie. not saving todays increment)
October 25, 2014 03:14PM
Dear Tapani,

You have a good point about cheap disk space :)

And thanks for your information. As you might expect, they are not a the same machine as the production data ;)

Tropically yours,[img]http://cdn.cahri.net/sig/julien.png[/img][b]Julien Tessier[/b]
[b]Directeur technique ninja[/b]

Tél Réunion : [url=tel]+262 262 02 47 21[/url]
Tél Maurice : +230 453 92 91
Mobile : +230 54 94 75 04
Email : julien < at > cahri.com ([email]julien < at > cahri.com[/email])[url=http://www.cahri.com/sig/pl.php][/url][url=http://www.cahri.com/][/url][b]L&rsquo;agence digitale bien dans ses tongs
[url=http://www.cahri.com/]Découvrez l&rsquo;agence sur www.cahri.com[/url][/b][b]RÉUNION[/b]
211, avenue du Général Lambert
97436 Saint-Leu
Tél : [url=tel]+262 262 02 47 27[/url]
reunion < at > cahri.com ([email]reunion < at > cahri.com[/email])[b]MAURICE[/b]
99, avenue des Tourtereaux
Villa Mevin - Flic en Flac
Tél : +230 453 92 90
mauritius < at > cahri.com ([email]mauritius < at > cahri.com[/email])[url=http://www.facebook.com/cahribook][/url][url=http://www.twitter.com/cahritweet][/url][url=http://www.pinterest.com/cahrinterest][/url][url=http://www.instagram.com/instacahri][/url]100% des pixels ayant servi à rédiger cet email sont issus du recyclage numérique

On Sat, Oct 25, 2014 at 6:15 PM, Tapani Tarvainen <rsnapshot < at > tapanitarvainen.fi ([email]rsnapshot < at > tapanitarvainen.fi[/email])> wrote:
[quote]On Sat, Oct 25, 2014 at 05:48:48PM +0400, Julien Tessier (julien < at > cahri.com ([email]julien < at > cahri.com[/email])) wrote:

[quote]/backup and /rsnapshot/daily.0 hold the same content so my aim is indeed to
save disk space (right now we use more or less twice as much space as
needed).
[/quote]
Recommendation: Forget it. Disk space is cheap.

[quote]/backup is the standard generated by cPanel which includes static files but
also database dumps and various other needed information in case we need to
recover data. We need the backups in this format, so we can&#39;t simply point
rsnapshot to the actual files on the live server (as we do with regular
LAMP instances).
[/quote]
Of course rsnapshot can dump databases directly by itself, but
I guess you want a backup that can be easily restored by cPanel tools.

And in that case you&#39;re out of luck: it can&#39;t be done. Sorry.
Other than by hacking cPanel sources, that is.
(Hacking rsnapshot won&#39;t help.)

[quote]Another idea: instead of copying /backup to /rsnapshot/daily.0, could
rsnapshot use hard links here as well?
[/quote]
The problem is that when cPanel writes its backups it doesn&#39;t
know anything about rsnapshot and the disk space is wasted at
that point. Even if you were to write an extra script that
links stuff in /backup and daily.0, it&#39;d be too late,
unless you do it inside (during) the cPanel backup.
(Theoretical solution: a program that runs in parallel with
cPanel backup and hardlinks files backed up immediately,
one at a time. Probably impossible to do in practice.)

[quote]Both directories are on the same server and the same filesystem.
[/quote]
I trust that&#39;s not the same machine as where the production
data is.

--
Tapani Tarvainen

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
[url=https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss]https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss[/url]

[/quote]
Sorry, only registered users may post in this forum.

Click here to login