Making a fssnap of / and /var


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Making a fssnap of / and /var
# 1  
Old 10-07-2010
Making a fssnap of / and /var

Hello to everyboyd i have a list of filesystem that i want to do a fssnap the idea is the bakcup
/
/var
/dbo
/Free

The logic is when i do a fssnap of / or /dbo or /Free the file that generetes the fssnap goes to /var but when i do a fssnap of /var goes to
/(and some folder). Can anybody help me?

I have todo do this becuase i do a script that generates de file of fssnap in /tmp but this filesystem is not like the other filesystem.
I copy the logic that i made.

Code:
for f in $FILESYSTEMS
do
echo
echo ":::: Efectuando Snapshot de $f (`date +%D-%T`)"
fsna=`fssnap -F ufs -o unlink,maxsize=500m,bs=/tmp/backup.file $f`
if ufsdump ${LEVEL}uf $REMOTO:$TAPE $fsna
then
:
else
error "Error Grabando Filesystem $f"
ERROR=true
break # Salir del Bucle FOR
fi
NARCH=`expr $NARCH + 1`
fssnap -d $f
done

Moderator's Comments:
Mod Comment please use code tags!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Csh , how to set var value into new var, in short string concatenation

i try to find way to make string concatenation in csh ( sorry this is what i have ) so i found out i can't do : set string_buff = "" foreach line("`cat $source_dir/$f`") $string_buff = string_buff $line end how can i do string concatenation? (1 Reply)
Discussion started by: umen
1 Replies

2. Solaris

Pls. help with fssnap - Solaris

Hi, I have used Solaris but new to ZFS. I need to backup the root volume using fssnap. zpool list NAME SIZE ALLOC FREE CAP HEALTH ALTROOT pool5 808G 552G 256G 68% ONLINE - rpool 136G 20.9G 115G 15% ONLINE - zfs list NAME USED... (3 Replies)
Discussion started by: samnyc
3 Replies

3. Solaris

Difference between /var/log/syslog and /var/adm/messages

Hi, Is the contents in /var/log/syslog and /var/adm/messages are same?? Regards (3 Replies)
Discussion started by: vks47
3 Replies

4. Solaris

/var/adm & /var/sadm

what is the difference between tha /var/adm and /var/sadm files in solaris 10 Os please can any one respond quickly thanking you (2 Replies)
Discussion started by: wkbn86
2 Replies

5. Solaris

Backing up using fssnap and ufsdump

Hi all! Here's my situation: I need to backup a running system before I can bring it down I've tried performing a ufsdump while it's in multi-user mode but my ufsdump fails because there is too much activity on the system. So I read that I could use fssnap to create a snapshot of (in my... (3 Replies)
Discussion started by: Keepcase
3 Replies

6. Solaris

Confused about fssnap

Hello All, I am confused about the below outputs when I have tried fssnap output using diff path. bash-3.00# /usr/lib/fs/ufs/fssnap -i ============>> o/p 1 Snapshot number : 0 Block Device : /dev/fssnap/0 Raw Device :... (0 Replies)
Discussion started by: vaibhav.kanchan
0 Replies

7. Solaris

Can fssnap be used as a compression tool (Solaris 10)?

Friends, I am learning the working of fssnap command. Suppose there is a directory named /datadir which is of size 500mb. I had taken the snapshot by means of the following command: #fssnap -F ufs -o bs=/snapshotdir /datadir { it shows the o/p as /dev/fssnap/0 } My question is if... (2 Replies)
Discussion started by: saagar
2 Replies

8. Solaris

diff b/w /var/log/syslog and /var/adm/messages

hi sirs can u tell the difference between /var/log/syslogs and /var/adm/messages in my working place i am having two servers. in one servers messages file is empty and syslog file is going on increasing.. and in another servers message file is going on increasing but syslog file is... (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

9. Solaris

fssnap ioctl error

For some reason when I try to take a snapshot of the root slice on a particular machine I get an ioctl 22 error. I can't seem to find much on the problem by searching the internet other than some realtime processes such as ntp that use mlock can cause this to happen. I tried running it with truss... (2 Replies)
Discussion started by: ilikecows
2 Replies

10. Solaris

how can we take fssnap of different filesystems for the same point-in-time?

I managed to work with fssnap for snapshotting filesystems but, my question is..., is there a way we could get snapshots for the same point for multiple FS. Wating on your help..., as i already did my trials what all i can!! -ilan (0 Replies)
Discussion started by: ilan
0 Replies
Login or Register to Ask a Question