Re: Script for creating/managing snapshots of all subvolumes of all filesystems

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

 



Alexander Skwar <alexanders.mailinglists+nospam@xxxxxxxxx> schrieb:

> FWIW, I've also written a script which creates and "manages"
> (ie. deletes old) snapshots.
> 
> It figures out all the available filesystems and creates snaps
> for all the available (sub)volumes.
> 
> It's also on https://copy.com/WI9AXqTH2nD4 and
> http://pastebin.com/YX8WKcsR to avoid line break issues and also with
> comments.

You should change the calls of "btrfs subv del" etc to use unabbreviated 
versions of the commands. Otherwise you expose your script to erratic 
behavior as soon as new commands are added to btrfs that make your usage of 
the commands ambigious.

Regards,
Kai

--
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