Re: Recommended star command to mirror a data directory

[email protected] (Joerg Schilling) Fri, 04 May 2007 11:48:57 +0200
Newsgroups gmane.comp.archivers.star.user
Message-ID <463b0189.zIPMSYs1KLuGVW5R%[email protected]>
[email protected] wrote:

> Hi star users.
>
> What is your recommended star command to mirror a data directory
> in a LAN (between two different hard disks)?

There is no "remote host to host"  option for a star yet.
You would need to use NFS or replace "| star" by "| rsh star"

> Objectives (from more important to less important):
> 1. robustness (we talking about star, so this one is probably an easy one :-) )

I am running this on a daly base with Berlios and did not see a problem
since May 2005.

> 2. speed

Depends on your HW

> 3. optional: recycling a previous backup (produced by an earlier star call)

???

> The data amounts to around 80 GB with several million files;
> so tools like rsnapshot or rsync will break and
> star is one of the remaining alternatives.


Could you tell me something on those restrictions?
Star has no restriction in handling incrementals.



Level 0 initial copy:
/*--------------------------------------------------------------------------*/
#!/bin/sh

PATH=$PATH:/opt/schily/bin
export PATH

umount /mnt
fssnap -F  ufs -d /export/nfs
rm /export/home/EXPORT-NFS.snap
sync
sleep 10
echo > /tmp/S.$$
svcadm disable svc:/network/nfs/server
mount -r `fssnap -F  ufs -o backing-store=/export/home/EXPORT-NFS.snap
/export/nfs` /mnt
svcadm enable svc:/network/nfs/server

star bs=1m fs=256m -c -xdev -sparse -acl -link-dirs level=0 dumpdate=/tmp/S.$$ fs-name=/export/nfs -wtardumps tardumps=/etc/td-copy -C /mnt . | \
star bs=1m fs=256m -xpU -no-fsync -restore -time -C /export/nfs2

rm /tmp/S.$$
/*--------------------------------------------------------------------------*/

Level 1 cumulative incremental:
/*--------------------------------------------------------------------------*/
#!/bin/sh

PATH=$PATH:/opt/schily/bin
export PATH

if [ -f /export/nfs2/star-lock ]; then
        exit 0
fi

umount /mnt
fssnap -F  ufs -d /export/nfs
rm /export/home/EXPORT-NFS.snap
sync
sleep 10
echo > /tmp/S.$$
svcadm disable svc:/network/nfs/server
mount -r `fssnap -F  ufs -o backing-store=/export/home/EXPORT-NFS.snap
/export/nfs` /mnt
svcadm enable svc:/network/nfs/server

star bs=1m fs=256m -c -xdev -sparse -acl -link-dirs level=1 -cumulative dumpdate=/tmp/S.$$ fs-name=/export/nfs -wtardumps tardumps=/etc/td-copy -C /mnt . | \
star bs=1m fs=256m -xpU -no-fsync -restore -time -C /export/nfs2

rm /tmp/S.$$
/*--------------------------------------------------------------------------*/Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]                (uni)  
       [email protected]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
Star-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/star-users