Re: backups and md5 all in one while splitting

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



On Fri, Nov 09, 2007 at 12:53:00PM -0500, Ruslan Sivak wrote:
> I'm trying to back up our svn repositories, and I found a nice little 
> backup command line bzip's the backup and creates the md5 hash all in one:
>
> svnadmin dump --deltas /repo |bzip2 |tee dump.bz2 | md5sum >dump.md5
>
> The problem is I need to split the backups, so this doesn't really work.  
> Is there perhaps another way of piping things to allow for splitting of the 
> backups?  Currently I'm doing something like this
>
> svnadmin dump --deltas /repo |bzip2 |split - -b 64m
> cat *.bz2* | md5sum >dump.md5
>
> Is there a way to do this all in one step?

Would something as simple as:

  svnadmin dump --deltas /repo | bzip2 | split - -b 64m && cat *.bz2* | md5sum >dump.md5

Work for you? :)

Ray
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux