* [9fans] Venti backups from unix
@ 2024-12-14 19:37 Anthony Sorace
2024-12-17 16:53 ` [9fans] " wb.kloke
0 siblings, 1 reply; 3+ messages in thread
From: Anthony Sorace @ 2024-12-14 19:37 UTC (permalink / raw)
To: 9fans
I use vac in Plan 9 Ports to back up a bunch of Unix hosts to a Plan 9 venti. I've talked about this several times, including on here at least once or twice, but someone asked me again a day or two ago and I realized I didn't have anything convenient to point to. So I did a lab report:
http://a.9srv.net/reports/vac-unix.pdf
(also .html or .ms if you prefer!)
There's nothing particularly novel in there, but an example in practice is often helpful. I've been using some variation on this since... 2009 (!!!) and it's been very useful.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T5f59d7df5796d0cc-Mceaa0e3e5cffdbde60610dfb
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 3+ messages in thread
* [9fans] Re: Venti backups from unix
2024-12-14 19:37 [9fans] Venti backups from unix Anthony Sorace
@ 2024-12-17 16:53 ` wb.kloke
2024-12-17 19:57 ` Alexander Schreiber
0 siblings, 1 reply; 3+ messages in thread
From: wb.kloke @ 2024-12-17 16:53 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 2145 bytes --]
Using vac for Unix backup has some shortcomings.
I, too, used vbackup on FreeBSD (UFS2). Whether the different blocksize (on most disks: 32kB) to 8kB vac default may detrimental, is disputable. Now, I have moved to ZFS, and a different approach is needed. ZFS's own backup tools are useful only if the backup device is ZFS also. It is not known, wether a zfs-send stream would play nice with venti deduplication, and probably the send-stream files themselve are not very useful.
On a desktop system using a browser like chromium or firefox, we got a lot of files we simply don't want to backup. The browsers, and a lot of other desktop applications, scatter those files over several dot-named directories like .config, .local or .cache. Excluding dot-named files and directories from backup is a good idea, especially for .ssh, which contains secrets, which are not secret anymore, if backupped.
I find it clumsy to instruct vac to do it right by filenames only. Here is my current exclude file for my own user directory:
> exclude wb.vac
> include .*rc
> include .login
> include .profile
> include .xsession
> exclude .*
> exclude ....[gx]z
> exclude ....bz2
> exclude ....img
> exclude ....iso
> exclude ....zip
> exclude ....tar
> exclude ....t[bgx]z
> exclude ...octave-workspace
> exclude Downloads
A version usable for the /home directory would look like
> include */.*rc
> include */.login
> include */.profile
> include */.xsession
> exclude */.*
> exclude ....[gx]z
> exclude ....bz2
> exclude ....img
> exclude ....iso
> exclude ....zip
> exclude ....tar
> exclude ....t[bgx]z
> exclude ....tmp
> exclude .../temp.*
> exclude ...octave-workspace
I am not really happy with this version, too.
For files other than those in user directories, the restricted vac semantics (no file flags, eg.) will also limit the usefulness of plan9port vac as backup tool.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T5f59d7df5796d0cc-M68bafe46f0acf242efa628a0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 3646 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] Re: Venti backups from unix
2024-12-17 16:53 ` [9fans] " wb.kloke
@ 2024-12-17 19:57 ` Alexander Schreiber
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Schreiber @ 2024-12-17 19:57 UTC (permalink / raw)
To: 9fans
On Tue, Dec 17, 2024 at 11:53:12AM -0500, wb.kloke@gmail.com wrote:
>
> On a desktop system using a browser like chromium or firefox, we got a lot of
> files we simply don't want to backup. The browsers, and a lot of other
> desktop applications, scatter those files over several dot-named directories
> like .config, .local or .cache. Excluding dot-named files and directories
> from backup is a good idea, especially for .ssh, which contains secrets,
> which are not secret anymore, if backupped.
Except if those ssh keys are used to authenticate to other systems,
are not backed up and then subsequently lost to storage failure, one
might have a somewhat not fun time.
So I recommend splitting your backups into unprotected sets (no damage,
at most mildly irritated if it becomes public) and protected sets
(e.g. ssh keys, financial/medical data, etc), the latter of which
should be encrypted.
Kind regards,
Alex.
--
"Opportunity is missed by most people because it is dressed in overalls and
looks like work." -- Thomas A. Edison
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T5f59d7df5796d0cc-Me5b0d5c6d64128366682091c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-17 20:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-14 19:37 [9fans] Venti backups from unix Anthony Sorace
2024-12-17 16:53 ` [9fans] " wb.kloke
2024-12-17 19:57 ` Alexander Schreiber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).