Register
It is currently Tue Oct 21, 2014 3:30 pm

Incremental backup using DUMP Command


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Mon Sep 06, 2010 1:38 am   

Joined: Sun Aug 22, 2010 10:54 pm
Posts: 4
Hi,

I have used Dump Command to dump the application files. For Full backup the level 0 is working file.

For incremental backup I used the level 1 or 2 it is getting the error as

DUMP: Only level 0 dumps are allowed on a subdirectory
DUMP: The ENTIRE dump is aborted.

The code I used
===============================
#!/bin/bash
#Full Day Backup Script
#application folders backup
#test is the username

now=$(date +"%d-%m-%Y")

#use 1 instead of 0 which is incremental backup
dump -2f /var/www/html/prashant/$now /var/www/html/rightstracker/*
-================================

Please check and let me know where I went wrong

Thanx in advance


Top
 Profile  
 PostPosted: Mon Sep 06, 2010 7:49 am   
User avatar

Joined: Tue Apr 27, 2010 2:28 pm
Posts: 172
Location: Czech Republic
dump is not a bash builtin nor a standard linux command. From the error string, though, I guess it cannot operate in level 1 or 2 on subdirectories, so you'll have to dump subdirectories one by one in a script.


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP