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

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

 



Hi

On Sun, May 5, 2013 at 7:36 PM, Kai Krakow <hurikhan77+btrfs@xxxxxxxxx> wrote:
> 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

Oh, yes. Very good point. And there really isn't any benefit
in using abbreviated versions of the command names in a
script anyway.

On the command line: Yes, less to type = better.
But in a script?

Thanks. Very good point indeed!

Alexander
--
=>        Google+ => http://plus.skwar.me         <==
=> Chat (Jabber/Google Talk) => a.skwar@xxxxxxxxx <==
--
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