Hey all,
I hope you can help me with this. I'm looking to setup incremental backups on my solaris 9 box. When I'm doing my full backups from single user mode I'm using :
First we are mounting to our drive for backups.
mount /dev/dsk/c0t0d0s7 /mnt
Then we are dumping each slice one at a time.
ufsdump 0vf /mnt/c1t0d0s0.ufs /dev/rdsk/c1t0d0s0
ufsdump 0vf /mnt/c1t0d0s3.ufs /dev/rdsk/c1t0d0s3
ufsdump 0vf /mnt/c1t0d0s5.ufs /dev/rdsk/c1t0d0s5
ufsdump 0vf /mnt/c1t0d0s6.ufs /dev/rdsk/c1t0d0s6
ufsdump 0vf /mnt/c1t0d0s7.ufs /dev/rdsk/c1t0d0s7
What I'm looking to do is setup a cron job that will do Monday through Thursday incremantals and Friday differentials. I am unsure how to setup a script to do this since I am writing to a harddrive and not a tape. I'm also not sure how to set it up to dump each slice without it being 5 different cron jobs every night.
I would greatly appreciate anyone who can help me with this.
Thank you
I hope you can help me with this. I'm looking to setup incremental backups on my solaris 9 box. When I'm doing my full backups from single user mode I'm using :
First we are mounting to our drive for backups.
mount /dev/dsk/c0t0d0s7 /mnt
Then we are dumping each slice one at a time.
ufsdump 0vf /mnt/c1t0d0s0.ufs /dev/rdsk/c1t0d0s0
ufsdump 0vf /mnt/c1t0d0s3.ufs /dev/rdsk/c1t0d0s3
ufsdump 0vf /mnt/c1t0d0s5.ufs /dev/rdsk/c1t0d0s5
ufsdump 0vf /mnt/c1t0d0s6.ufs /dev/rdsk/c1t0d0s6
ufsdump 0vf /mnt/c1t0d0s7.ufs /dev/rdsk/c1t0d0s7
What I'm looking to do is setup a cron job that will do Monday through Thursday incremantals and Friday differentials. I am unsure how to setup a script to do this since I am writing to a harddrive and not a tape. I'm also not sure how to set it up to dump each slice without it being 5 different cron jobs every night.
I would greatly appreciate anyone who can help me with this.
Thank you