Re: subvol copying

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> A user of a workstation has a home directory /home/john as a subvolume.  I 
> wrote a cron job to make read-only snapshots of it under /home/john/backup 
> which was fortunate as they just ran a script that did something like
> "rm -rf ~".
> 
> Apart from copying dozens of gigs of data back, is there a good way of 
> recovering it all?  Whatever you suggest isn't going to work for this time 
> (the copy is almost done) but will be useful for next time.
> 
> Should I have put the backups under /backup instead so that I could just 
> delete the corrupted subvol and make a read-write snapshot of the last good 
> one?

You can move subvolumes at any time, as if they were regular directories.

For example: move the backups to an external location, move what's left
of the home to another location out of the way, and make a snapshot to
restore.


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux