Exempting directories in TAR backups
Hi all,
Although this is a Unix question, I suppose anyone using user managed backups may have encountered this problem:
Let's suppose I've got a directory /u01 and subdirectories a,b,c....up to Z in that directory (ie.u01). If I need to tar up all directories with the exemption_ of x,y and z, what command do I need to run to achieve this.
Regards
Baffy
Hi Laura,
Thanks for your help so far. If I've got 3 directories to exemp (samples01, samples03, samples03), which of the following would be correct:
a) $ tar -cvf sam.tar * --exclude samples01 samples02 samples03
------or-------
b) $ tar -cvf sam.tar * exclude samples01 exclude samples02 --exclude samples03
Regards
Similar Messages
-
Hi
Earlier I used to take tar backup (cold backup) of my R12 database(10g) with the below command and it was taking around 4 hours
tar cvEf - oraprod |gzip -c > /backup/cold/PROD/oraprod.tgz
but from last two backup it is taking around 12 hours, I don't know what is the issue
Only change is I configured Data Guard
Please suggestModerator Action:
This post was originally posted to the Solaris 10 General Discussion forum.
This post is likely to receive better understanding in the Dataguard forum.
It is therefore moved for closer topic alignment.
Recent posting history shows an post to the EBS forum for an upgrade question:
Database upgrade
None of that suggests this is an issue with the OS, but rather hints the issue is with everything else. -
HI
I'm a legal alien allowed to work in USA and I've my W2 from my company for taxing purposes.
I've built an iAd based app and want to publish them.
I've paid my tax returns properly for the last 2 years without fail.
Should I register myself as "Exempt" or "Subject to Backup withholding"???
I've registered myself as an "Individual/Sole Proprieter"
Thanks and RegardsOnly if he's going to register his law firm as the company legally selling the app. Otherwise he would use his SSN or apply for an EIN as a sole proprietor.
If he has further questions, he really should contact the developer support people.
Regards. -
Hi all
can anyone tell me how to restore tar backup (complete procedure) or give url where i can find some pdf or so.
One more q. tar backup is complete os and sap backup or only for osTar is used to create archive of files,
for some OS it has additional functionality to do compression .
Detailed options available in your OS can be checked by typing "man tar".
To simply extract file_name.tar to working directory you can use tar xvf file_name.tar
Before doing extraction of any tar files, it is recommended to check the file contents first,
by using tar tvf file_name.tar
You can backup any 'static' file using tar,
that means you should bring the database down before create the tar of its data files .
Rgds,
TS WINEDYA -
What is a .tar backup file and can I delete it?
I'm cleaning up files on my iMac and noticed a file in my Documents folder (where I keep applications installation files) that is called "backup-fri-feb-08-15_42_35-2013.tar". This file is over 7 gb so I would like to remove it but I can't find anywhere what it is. I found a wiki page that explains that .tar files are old Unix format but what do I need it for and what program created it?
I use an external drive but I use Carbon Copy Cloner instead of Time Machine and I have TM turned off. I'm wondering if it is a backup file from a program I don't even use any longer. I also use Parallels for 2 Windows programs and I'm finding that some of the Windows programs create backups of stuff I don't need or use. Sounds like it would be safe to delete it.
Thanks so much. -
Tar backups to usbdrive...
Hi,
I'm trying out using tar to backup system files to my usbdrive
This command
tar -cvzf /dev/sdd1 -g /backups/etc.snap /etc
backs up /etc to usbdrive & puts a snapshot of files in //backup/etc.snap idea being that I will only have to update changed files or new files
thing is atm it just drops a filename call z in /dev/sdd1 which means nothing lol
Would be nicer to have it named something like etcbackup.taz.gz
/me looks at manual
Atm I would like a simple cli way of backing up /home /etc [maybe pacman stuff!] :?:Mr Green wrote:would rather use cli ... rsync never had no luck with it ... KDE!!!! nooooo lol
Now just what in the *hell* do you mean you can't get rsync to work? Its the greatest thing since sliced bread.
Lem'me show 'ya somethin'!:
tyler@tungsten ~ $ cat /etc/cron.daily/archbu
#!/bin/bash
backupdir="/mnt/hdb5/backup/arch"
[ ! -f $backupdir ] && mkdir -p $backupdir
rsync -av --delete /etc /home/tyler $backupdir
Look at that. Just look at it. Exact mirror copy. Beautiful. -
Tar-backup: gui tool for backups using tar
Hi everybody.
I made little application to simplify process of creating backups. It use tar, openssl (for encrypting archives). Written in QT4
Links:
github
AUR
PKGBUILD
Screenshots:
Main window
Restore tab
Output tab
Backup settings
Tell me what you think. Any feedback is welcome. Thanks.
Last edited by marazmista (2013-07-31 22:45:13)Wow the GUI looks great.
Sadly, it's of no use to me as I personally am satisfied with rsync. But, I am sure others will find it useful.
Edit: By the way, you should put qt qt4 (whichever version you are using (I am blind )), in the PKGBUILD depends array.
Last edited by x33a (2013-07-18 05:47:55) -
[solved] udev /run folder and tar backups
Hi,
I usually make my backups of arch using something like this
tar -cvpzf /media/root-`date +%d%m%y`.tar.gz --exclude=/{dev,lost+found,mnt,media,proc,sys,tmp}/* / | grep tar:
My restore procedure is simple, extract the tar , chroot + mkinitcpio -p + grub and all go fine.
Now the latest updates (initscripts,udev) create a new folder /run , is safe to exclude this folder in the tar file?
Thanks in advance.
/run is a tmpfs so I think is safe to exclude. mark as solved.
Last edited by andrews (2011-05-03 20:46:54)There are a couple of obvious problems: first, your rule file has to end in .rules (not .rule). See http://www.reactivated.net/writing_udev … tml#syntax
Also, rule files are sorted in lexical order, so you may want to prepend a high number to your rule: 90-logitech-mouse.rules, for example. See http://www.freedesktop.org/software/sys … /udev.html
Finally, if the RUN+= key is blocked, look at using SYSTEMD_WANTS: see `man systemd.device`. -
How can I add selected directories to windows backup choice
Using Windoze 7 on T530 and backing up to NAS I have opted to let the backup select directories. Most are OK but some directories I wish to backup have been omitted. Is it possible to add these to the windoze selection before backing up again?
Hi Carlin,
Find below code to copy selected record from one node to another.
Here I am copying it_lips node into pack_mat node.
DATA: wa_temp TYPE REF TO if_wd_context_element,
lt_temp TYPE wdr_context_element_set,
count type c.
DATA : lo_nd_it_lips TYPE REF TO if_wd_context_node,
lo_el_it_lips TYPE REF TO if_wd_context_element,
ls_it_lips TYPE wd_this->Element_it_lips,
lt_it_lips TYPE wd_this->Elements_it_lips,
ls_unpack TYPE wd_this->Element_unpack,
lt_unpack TYPE wd_this->Elements_unpack.
* navigate from <CONTEXT> to <IT_LIPS> via lead selection
lo_nd_it_lips = wd_context->path_get_node( path = `ZRETURN_DEL_CHANGE.CHANGING_3.IT_LIPS` ).
CALL METHOD lo_nd_it_lips->get_selected_elements
RECEIVING
set = lt_temp.
* navigate from <CONTEXT> to <PACK_MAT> via lead selection
lo_nd_pack_mat = wd_context->get_child_node( name = wd_this->wdctx_pack_mat ).
LOOP AT lt_temp INTO wa_temp.
CALL METHOD wa_temp->get_static_attributes
IMPORTING
static_attributes = ls_it_lips.
ls_pack_mat-vgbel = ls_it_lips-vgbel.
ls_pack_mat-vgpos = ls_it_lips-vgpos.
append ls_pack_mat to lt_pack_mat.
CLEAR ls_pack_mat.
endloop.
lo_nd_pack_mat->bind_table( new_items = LT_PACK_MAT
SET_INITIAL_ELEMENTS = abap_true ).
Cheers,
Kris. -
LMS 3.2 - Backup-Error -- ERROR(908): Cannot create or back up tar file
Hello again,
with performing backup (LMS 3.2 on Solaris 9) the following errors will arise.
dbbackup.log
/opt/CSCOpx/bin/tar: Removing leading `/' from absolute path names in the archive Apps file : /opt/CSCOpx/backup/manifest/upm/upminfo/datafiles.txt
[Tue Dec 8 08:56:54 2009] Archiving the contents of the following directories into /enbw/backup/files/cw_db_backup/0/upm/filebackup.tar
[Tue Dec 8 08:56:54 2009] /opt/CSCOpx/hum/conf/upm-snmp.properties
/opt/CSCOpx/hum/thresholdscript /opt/CSCOpx/MDC/tomcat/webapps/upm/reports
/opt/CSCOpx/MDC/tomcat/webapps/upm/WEB-INF/classes/com/cisco/nm/upm/properti
es/common/UPM.properties
/opt/CSCOpx/bin/tar: Removing leading `/' from absolute path names in the archive
/opt/CSCOpx/bin/tar: Cannot add file
/opt/CSCOpx/MDC/tomcat/webapps/upm/reports/virt32841308_657_658_-718594975:
No such file or directory
/opt/CSCOpx/bin/tar: Cannot add file
/opt/CSCOpx/MDC/tomcat/webapps/upm/reports/virt32841308_658_659_1465769167:
No such file or directory
/opt/CSCOpx/bin/tar: Error exit delayed from previous errors [Tue Dec 8 09:07:30 2009] ERROR(908): Cannot create or back up tar file. Backup cancelled. Verify that you have write-access to this directory. [Tue Dec 8 09:07:30 2009] Backup failed: 2009/12/08 09:07:40 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Is seems to be problem related to maximal filesize handling of GNUtar implemented in CW2000.
The problem is with tar'ing HUM-Reports in /opt/CSCOpx/MDC/tomcat/webapps/upm/reports, and with reaching
tarfile-size of 2,9GByte error is thrown.
</exxx/backup/files/cw_db_backup/0/upm># ls -lh
total 6126448
-rw-r----- 1 casuser casusers 2.9G Dec 8 09:07 filebackup.tar
</exxx/backup/files/cw_db_backup/0/upm># ls -al
total 6126452
drwxr-x--- 2 casuser casusers 512 Dec 7 14:30 .
drwxr-x--- 11 casuser casusers 512 Dec 7 14:30 ..
-rw-r----- 1 casuser casusers 3135201280 Dec 8 09:07 filebackup.tar
GNUtar-Version
# /opt/CSCOpx/bin/tar --version
tar (GNU tar) 1.13
Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by John Gilmore and Jay Fenlason.
Is this a know problem?
Thanks for any thoughts.
Best Regards
LotharHi Joe,
thanks for your feedback.
These files to be tarred aren't there directly after backup stops with error.
It seems that some process stores data about reports in that file and when trying to
pack these reports via tar they are delete by any cleanup method.
Does this help.
P.S. Backup usually takes about more than 1hour -
LMS 3.2 - Backup hangs with validating ANI-DB
Hello all,
on our Solaris Systems running LMS 3.2 backup struggles with backing up ANI-DB (even after doing Restore of orig db).
As the problem arises on more than one LMS 3.2 system with same patch-level my question
to you -> is this a known problem?
Thanks for any feedback
Lothar
Here's the point when backup results in freeze
(dbbackup.log)
[Mon Mar 29 11:32:01 2010] Archiving the contents of the following directories into /enbw/backup/files/cw_db_backup_nfs/4/campus/filebackup.tar
[Mon Mar 29 11:32:01 2010] /opt/CSCOpx/campus/etc/cwsi/DeviceDiscovery.properties
/opt/CSCOpx/campus/etc/cwsi/ANIServer.properties
/opt/CSCOpx/campus/etc/cwsi/ut.properties
/opt/CSCOpx/campus/etc/cwsi/discoverysnmp.conf
/opt/CSCOpx/campus/etc/cwsi/datacollectionsnmp.conf
/opt/CSCOpx/campus/etc/cwsi/WlseUhic.properties
/opt/CSCOpx/campus/etc/cwsi/UTSnmpv3EngineParam.txt
/opt/CSCOpx/campus/etc/cwsi/UTDiscoverOnTrunk.properties
/opt/CSCOpx/campus/etc/cwsi/users
/opt/CSCOpx/campus/etc/cwsi/archives
/opt/CSCOpx/campus/etc/users
/opt/CSCOpx/campus/etc/cwsi/ReportArchives
/opt/CSCOpx/campus/etc/cwsi/CMReportArchives
/opt/CSCOpx/campus/etc/cwsi/portsData.xml
/opt/CSCOpx/campus/etc/cwsi/RouterData.xml
/opt/CSCOpx/campus/etc/cwsi/vlanData.xml
/opt/CSCOpx/campus/etc/cwsi/CMHP.properties
/opt/CSCOpx/campus/etc/cwsi/MACDetection.properties
/opt/CSCOpx/campus/etc/cwsi/OUI.properties
/opt/CSCOpx/campus/etc/cwsi/PortModuleConfig.properties
/opt/CSCOpx/htdocs/campus/maps
/opt/CSCOpx/campus/lib/classpath/com/cisco/nm/cm/ut/uhic/utlite/properties/utliteuhic.properties
/opt/CSCOpx/campus/lib/classpath/com/cisco/nm/cm/ut/utm/properties/utm.properties
/opt/CSCOpx/campus/lib/classpath/com/cisco/nm/cm/ut/uhic/mac/properties/macuhic.properties
/opt/CSCOpx/campus/etc/cwsi/vnmData.xml
/opt/CSCOpx/vnm/conf/VNMServer.properties
/opt/CSCOpx/vnm/conf/VNMClient.properties
/opt/CSCOpx/vnm/conf/velocity.properties
/opt/CSCOpx/vnm/conf/VRFCollectorSnmp.conf
/opt/CSCOpx/vnm/reports/VNMReportArchives/archives
/opt/CSCOpx/vnm/reports/VNMReportArchives/jobs
/opt/CSCOpx/bin/tar: Removing leading `/' from absolute path names in the archive
mkdir /enbw/backup/files/cw_db_backup_nfs/4/campus/database/
[Mon Mar 29 11:32:11 2010] Backing up database aniDb:SQL Anywhere Command File Hiding Utility Version 10.0.1.3830
SQL Anywhere Backup Utility Version 10.0.1.3830
(3348 of 3345 pages, 100% complete)
Database backup completed
SQL Anywhere Command File Hiding Utility Version 10.0.1.3830At this phase, the backup is trying to verify the database. When that hangs, it typically means the database is corrut in some way. It could also point to a very large ANI database, and this phase is just taking a long time. It also looks like you're trying to backup to an NFS mount. Can you try a backup to a local file system, and see if the verification completes?
Please support CSC Helps Haiti
https://supportforums.cisco.com/docs/DOC-8895
https://supportforums.cisco.com -
Hi,
Can I backup the Apps tier file directories (using tar) which I need for cloning/copy to another
server after I run (perl adpreclone.pl appsTier), Even if the applications is up and running?
Thanks a lotCan I backup the Apps tier file directories (using tar) which I need for cloning/copy to another server after I run (perl adpreclone.pl appsTier)Yes, you can (you run pre-clone then you copy the files).
Even if the applications is up and running?It is possible; provided that your OS supports copying the files while it is in use (i.e. Linux/Unix). Windows OS does not let you copy the files (i.e. DLL, EXE files) if it is in use. -
MacMini backup from unix shell
I have setup a MacMini as a web server, and the only way I can get to it is with SSH.
I am trying to setup a cron job to do backups to an external hard drive, but I am having some dificulty finding out what some of the best practices are. Since I do not have a GUI, what utilities are out there to help me back up the system?
I want, in case of a failure, to be able to restore the full OS, with the boot record and everything.
The tar did not allow me to go over 4BG or space... (plus it does not do the MBR)
MacMini
MacMiniIF you need more help with rsync, you should move this discussion into the Unix forum. The guys over there know the command quite well.
Mac's rsync is a little different than the standard Linux flavor, because it makes allowances for the HFS+ format.
Here's the command I use (it runs nightly as a cron job)
rsync -a -c --exclude-from=/etc/rsyncx/exclude.conf /Users /private/etc /var/mail /var/ldap /Volumes/Backup > ~mainuser/rsyncx.log
This command backs up the Users, etc, var/mail, and var/ldap directories to /Volumes/Backup. Any problems are recorded in rsyncx.log in mainuser's home directory.
I use the exclude.conf file to skip things like cache files and other detritus that doesn't need to be saved. It's just a plain text file with these lines (note the "NoArchive/" -- anytime I have stuff I don't want archived, I just create a folder named "NoArchive" anywhere I want; anything in there won't get backed up):
Caches/
Cache/
caches/
cache/
Library/Thunderbird/
Library/Syndication/Database*
Library/Application Support/SyncServices/
Library/Application Support/Firefox/
Library/Application Support/Quicksilver/
Library/Preferences/MS Internet Cache/
SyncServices/
.spamassassin/bayes*
.razor/*log
.procmail/log
NoArchive/
.spumux/
.cpan/
.Trash/
Fonts/
iPhoto Library/
iTunes/
*.band/
.emlx
*.qsindex
*cache -
Cisco Works LMS 3.2 backup takes too long time to finish
Hello guys,
We have problem with scheduled LMS 3.2 backup. It takes more than 12hours to finish. You can see in log that backup is scheduled for 18:00h and it waits untill 22:07 to start doing anything. We can't figure out why is there such a delay. It started to happen after system reported lack of free space on disk. And we feed up the space, but then faced this problem with long duration. Before this problem occured backup used to last for 45 min od 1 hour.
Backup to 'C:/BACKUP' started at: [Mon Apr 11 18:01:26 2011]
Apps file : D:\\PROGRA~1\\CSCOpx\\backup\\manifest\\campus\\properties\\datafiles.txt
[Mon Apr 11 22:07:07 2011] Archiving the contents of the following directories into C:\BACKUP\2\campus\filebackup.tar
[Mon Apr 11 22:07:07 2011] D:\PROGRA~1\CSCOpx\campus\etc\cwsi\DeviceDiscovery.properties
D:\PROGRA~1\CSCOpx\campus\etc\cwsi\ANIServer.properties
D:\PROGRA~1\CSCOpx\campus\etc\cwsi\ut.properties
D:\PROGRA~1\CSCOpx\campus\etc\cwsi\discoverysnmp.conf
D:\PROGRA~1\CSCOpx\campus\etc\cwsi\datacollectionsnmp.conf
Do you have any ideas what went wrong and how to fix it?
Thanks,
MarijaThis is a catch 22 , you need to apply a patch to fix a backup problem , yet you want to backup before applying a patch. This is where you will have to assume some risk, and apply the patch w/o a backup.
Go to Common Services -> Device and Credentials -> Device Mgmt and export the entire DCR (All devices) to a CSV file. Make sure you browse to someplace outside application space, I usually place the file at c:\. Also make sure you check mark the include credentials box, so you also have all your device passwords. This is your D/R plan, if things were to fail you will have your device list you can import in an emergency.
Or you can try the suggestion of clearing DFM to mitigate potential loss so you can get a good backup of the rest of LMS. Just be sure to view your notifications and cut/paste into note pad so they can be rebuilt. You will lose history and local customizations to Polling and Thresholds and DDV.
# net stop crmdmgt
kill any sm_* / brstart processes still running
# cd ...\CSCOpx\bin
# perl dbRestoreOrig.pl dsn=dfmInv dmprefix=INV
# perl dbRestoreOrig.pl dsn=dfmFh dmprefix=FH
# perl dbRestoreOrig.pl dsn=dfmEpm dmprefix=EPM
Use explorer to go to ...\CSCOpx\objects\smarts\local\repos\icf and delete all .rps files
perform the backup. -
Deleting an older Backups.backupdb/(hostname) dirs from a Time Machine disk
Last year I replaced my old Xserve-G5 with a new MacPro. The Xserve had an external hard disk it used for Time Machine backups. I didn't format the disk when changing servers on the theory that I'd want to keep a few months of backup history.
Fast forward to today, and the backup disk is starting to get a bit full, and now that I have enough of a backup history, I want to delete the snapshots from the Xserve. If I try to:
sudo rm -rf /Volumes/Backup/Backups.backupdb/Xserve/
I get a lot of "Operation Not Permitted" errors. Inspecting in "Server Admin" shows that there are ACLs setup on the per-host directories inside of Backups.backupdb set to Deny most activities. Any attempt to remove or change that ACL, or add your own 'Allow' ACLs show the changes get reset back to the single Deny rule immediately.
How do I claim back my space? Formatting would be an option, but would destroy my backup history. I would consider plugging it into an alternate (non-production) machine and booting it off the install DVD, but the drive is a DroboPro, which requires some drivers to work.Enter Time Machine from the menu bar icon or Dock, select the appropriate backup then click on the gear button at the top of the Finder style window, you will see a delete back up option in the list.
Maybe you are looking for
-
Recurring Appointments/Meetings - Saving UserProperties Doesn't work
Hi Guys, I have the issue below, any help would be really appreciated! The Aim When a user creates or saves a new Appointment or Meeting or Reccuring Meeting, I want to set a UserProperties with some unique data. Current Situation I currently have a
-
Tecra A11 - Bios Update offered - necessary?
Hi - I've just been offered a BIOS Update for my Tecra A11-17N (Via Toshiba Service Station) - BIOS Update v3.10.... Clicking on the update doesn't offer any details as to what it contains/fixes/improves - it just says basically "install, and compute
-
I'm trying to locate a Letter of Volatility for the VXI-1000 Mainframe, but haven't had any luck searching the web site. I tried to submit a support request but don't have a membership number to do so. Any help would be greatly appreciated. Thanks
-
Update Customer Equipment Card Status
Hi Experts, Out client has around 500 equipment cards with different status. They want to change/update the status. Doing it manualy will take lot of time and also possibility of error. Is there a way to do it in batch giving a range selection for ch
-
Exporting a subset of iTunes to my MBA
I asked this questions in the iTunes section but got no responses. I have limited disc space on my MBA but I do have plenty of space on my iMac. I'd like to export a subsets of my catalog and/or playlists to my MBA so that I can take at least some o