Ubuntu :: Tar Newer And Exclude Options Does Not Run Together

Feb 25, 2010

Im trying to make backups using tar, and incremental backups using --newer. The scripts are:

Code:
tar -czvf $DISKPATH/backupRepos.tgz /home/repos/ --exclude /home/repos/Temp
for general backup (on saturdays)
and
Code:
tar -czvf --newer="`date -r $DISKPATH/backupRepos.tgz +%F`" $DISKPATH/backupRepos-inc.tgz /home/repos/ --exclude /home/repos/Temp/ for incremental the rest of the week.

The problem is that the first script runs OK, excluding /home/repos/Temp from the backup, but on the second, it makes incremental OK, but doesnt exclude Temp folder. Anybody knows how can i fix this script to continue making incremental but excluding also?

View 2 Replies


ADVERTISEMENT

General :: Use Exclude Option In"rm" Command To Exclude Some Files/folders?

Feb 3, 2010

i have created on folder in my server to upload some regular states. I want that user can modify or upload already stored files. but, should not upload any unwanted files orfolders.for that i want to use "rm" command as auto scheduler (putting this in cron tab.so that all files will be removed except some required files / folders for which this upload facility is activated. users are using secure-shell for uploading data.

View 1 Replies View Related

Ubuntu Installation :: Installer Options - Can't Select Any Of The Menu Options Except For Boot From First Hard Drive

Mar 19, 2010

So I have the burned ubuntu CD, and I'm attempting to install it on a system that has one HDD with XP/Vista on it, and another that is completely formatted and unpartitioned. However, when I boot to the ubuntu CD, I can use the menus from the bottom, and select the language when initially prompted, but I can't select any of the menu options except for boot from first hard drive.

View 1 Replies View Related

Ubuntu Servers :: Squid Exclude URL From Caching

Feb 17, 2010

How do i exclude some URL from the proxy caching at squid.conf as i dont wont to cache ....., mediacafe etc, I know i can block site by create a file like bad-sites.acl, then adding it to squid.conf but that blocks it.

View 2 Replies View Related

Ubuntu :: Exclude File From Terminal Command?

Jul 12, 2010

Well i downloaded a program with many .deb files ( At least 15 ) so i wanna execute them all trough the terminal so i typed

Code:
patowlmc@patowlmc-desktop:~$ cd /home/patowlmc/Downloads/i386
patowlmc@patowlmc-desktop:~/Downloads/i386$ sudo dpkg -i *.deb
Readme.deb: command not found

As you can see all files in the folder are .deb packages, but one: The Readme file, wich is a text file.

I know I just have to move the file to somewhere else, and everything should work, but i wanna know if there's a command for excluding a file or something.

P.D. I totally trust the program, so don't worry about so many .deb files.

View 9 Replies View Related

Ubuntu :: How To Exclude Firefox From Update Manager

Jul 15, 2010

The update manager always tells me to update my firefox (all plugins included - never works as it should be). I decided to install it directly form moz. This works - I think it's my hardware. How can i get rid of the "update manager" to include firefox.

View 4 Replies View Related

General :: How To Exclude Last Several Characters?

Aug 17, 2010

any tips from you guys on how to filter my awk output?I want to exclude last 5 characters using awk in my tcpdump result.I don't want to include ".443:" in my tcpdump using awk.

View 6 Replies View Related

General :: How To Exclude Sub Directories From ZIP CLI

Jul 22, 2010

I'm trying to create backup/archive my Ubuntu 10.04 system files (so I can restore it in case my system get corrupted). More specifically, I'm trying to zip the important files in my root directory not including my home directory (which includes my documents which I backup separately/more frequently) to an external hard drive attached via USB (called 'My Book').Since File Roller didn't give me quite the level of control I was looking for, I created a script that I could execute to backup and archive regularly.

View 1 Replies View Related

General :: Exclude NFS In Find

Jan 20, 2010

I want to search files excluding the NFS find / -mount -name 'filename' restricts the search only in the root disc partition,but the file can be in other partitions also.Is there any way to exclude the NFS only...

View 7 Replies View Related

General :: Rsync - Exclude-from Qns ?

Jan 8, 2011

I'm trying to do a sync of the root home directory to a folder call backup and excluding some files.

This is wat i executed:

rsync -a /root/ --exclude-from '/root/rules.txt' /root/backup/

My rules.txt is as below:

- anaconda-ks.cfg

Somehow it doesnt read the rules.txt and it will always include the anaconda-ks.cfg file.

View 3 Replies View Related

Ubuntu :: One Exclude Ip Addresses In The Proxy Environment Variable?

May 12, 2010

I have set my environment variable for a proxy server as such [URL].. which works fine. wget rsync etc all use this proxy automatically. The problem is when I access other 10.x.x.x addresses on my private network all access goes through the proxy and is slow. How can I exclude 10.0.0.0 and 127.0.0.1 from the proxy server so that all applications obey this?

View 3 Replies View Related

Fedora :: Easier Way To Exclude Languages

Aug 27, 2010

I am using livecd-creator with the fedora-livecd-desktop.ks file to create livecd/usb images. The image that is created includes several languages (some are listed below). How can I only include one or two specific languages? Will I have to specify to remove each language group? If so, what is the syntax for yum?

View 2 Replies View Related

OpenSUSE :: Exclude Files From A ZIP Archive?

Mar 21, 2010

opensuse v11.2, linux 2.6.31.12-0.1-desktop x86_64
ZIP v2.32

I wish to exclude some files from a zip archive. On other OSes to exclude an entire directory I would use the "-x" option like so:

Code:
zip -r archive-name * -x dir1/* Simple. And just add "-x"'s as needed (or use an exclusion file).

Not how it works here, it would seem. AFAICT all "-x" options are ignored. (The entries in an exclusion file also.) For instance, "-x diy/mplayer/*" should ignore everything in the <diy/mplayer> directory. It does not. I have tried fully qualified paths as well; no joy.

What is different about ZIP on linux?

View 7 Replies View Related

General :: Exclude Does Not Work With Tar Command

Jul 6, 2011

I don't know why --exclude doesn't work when I use tar command. Please see this code
Code:
mahmood@pc:~$ l a/
1.txt 2.txt 3.txt b/
mahmood@pc:~$ tar cvjf compressed.tar.bz2 --exclude=/home/mahmood/a/b/ a/
a/
a/2.txt
a/1.txt
a/3.txt
a/b/
mahmood@pc:~$
As you can see although I excluded b/ but tar command ignored that.

View 2 Replies View Related

General :: Can Grep Exclude Symlinks?

Oct 15, 2010

I tried to run one grep that excludes symlinks and pipe it into a second that searches for my pattern but I continue to get the recursive directory loop error. As a result (I think) my grep is incomplete as the search just loops between directories symlinked together.

View 7 Replies View Related

General :: Exclude Dir From Find Command

Feb 5, 2011

i have this find command to find modified files and copy them.Code:find $SRC_DIR -type f -ctime -1|xargs -i cp --parents {} $BACKUP_DIR/$DAY/and it works good but it want to exclude files that exist in some folders like $SRC_DIR/cash and $SRC_DIR/woks/tmp

View 3 Replies View Related

General :: How To Exclude Multiple Directories

May 10, 2011

I am trying to exclude multiple directories when using tar. I can do it for just one directory with exclude= directory.I can also do it for multiple directories by typing that code again and again.As you can see im trying to call this variable that has endless amounts of directories in it seperated by a space.. but when run it doesnt work! It will however work if i just put one directory in the variable. Any ideas?

View 2 Replies View Related

General :: Tar File With Exclude A Directory?

Mar 2, 2010

[ --exclude FILE ] [ -X, --exclude-from FILEI tar to tar some directory and exclude a directory , I tried tar -cvf /tmp/test.gz ./* --exclude ./temp but not work , and the parameter --exclude seems exclude file only not directory , can advise what can i do

View 1 Replies View Related

General :: Include And Exclude In Rsync

May 26, 2011

I'm trying to copy files from my local directory to a remote site using rsync.I want to include in the copy all the java files and exclude all the .svn directories, but I can't do it.

View 4 Replies View Related

General :: Using Find To Exclude Some Files

Dec 7, 2010

I'm trying to find all java files in bash that contains the method "assign()".I would like to retrieve the same list except without the Test* files. How can I do that?

View 3 Replies View Related

Ubuntu :: Exclude Icons And Text From Panel Transparency With Compiz?

Jun 20, 2010

im wondering if there is a way of excluiding icons and text from the transparency of the panel with compiz config settings manager (opacity, brightness and saturation) using (class=Gnome-panel) & !(type=Menu | PopupMenu | Dialog | Dropdownmenu |)or if there is another way to make the panel semi transparent but without making icons and text in it transparent.

View 1 Replies View Related

Ubuntu Multimedia :: Make Rhythmbox Exclude A Specific Folder?

Oct 19, 2010

This question can be found on the Internet and on this forum but either there is no response or the advice is to move the folder to exclude on another path (in case of using a subfolder for ripped/downloaded mp3).

But in my case my music is on a SAN and I access it through CIFS. So every time I delete a file or folder it goes to the Trash, in a folder called #recycle, which Rhythmbox indexes as well. So I have to delete this folder to avoid duplicates...

Is there any configuration in Rhythmbox to exclude a folder?

I only see a configuration for multiple folders in gconf-editor:
/apps/rhythmbox/library_locations

View 2 Replies View Related

Ubuntu Security :: Exclude Folders From ClamAV Scheduled Scan?

Feb 22, 2011

I have network shares automounted in /media and I want to exclude them from my automatic scheduled ClamAV scan in Maverick. How do I do this? I can't find any CRON link or script that actually starts the scan. Is it the Daemon that does this?

View 1 Replies View Related

Ubuntu :: Compiz Window Picker - Include - Exclude Windows

Apr 22, 2011

I use the Scale Windows (aka Window Picker) of Compiz. I'm not entirely happy about the behaviour and i'm not sure if / how i can customise it.

What i want is:that minimized windows also are represented among scaled / exposed windows for me to pick from.
that my panel and dock are still clickable when all my windows are scaled / exposed.

Is there any way i can include / exclude these windows from that effect?

View 2 Replies View Related

Debian :: Ftpsync Still Downloading Old Files Despite Exclude?

Sep 6, 2015

I was thinking of migrating my apt-mirror repository to the recommended ftp scrips: [URL] .....

I pre populated my pool with already downloaded files, and setup the scripts.

However, if I run the bin/ftpsync, and monitor rsync with lsof -p, I can see that it is still downloading files from oldstable (wheezy) despite exclude options.

I'm guessing it's a configuration error, but I can't seem to figure it out. Any thoughts? My etc/ftpsync.conf is as follows:

Code: Select allMIRRORNAME=`hostname -f`
TO="/server_storage/srv/mirrors/debian"
RSYNC_PATH="debian"
RSYNC_HOST=ftp.us.debian.org
LOGDIR="${BASEDIR}/log"

[Code] ....

Actually, I don't think it works like I thought it did. A few guides I found listed the exclude options, but the sample config file has this:

Code: Select all## If you do want to exclude files from the mirror run, put --exclude statements here.
## See rsync(1) for the exact syntax, these are passed to rsync as written here.
## DO NOT TRY TO EXCLUDE ARCHITECTURES OR SUITES WITH THIS, IT WILL NOT WORK!
#EXCLUDE=""

So it looks like it doesn't exclude the suites at all.

View 5 Replies View Related

Debian :: Rsync Backup: Which Paths Should Exclude?

Nov 28, 2010

I'd like to backup my whole system to a 2nd disk using rsync (other tools not possible).Which paths should I exclude from the packup?I was thinking about /proc, /dev, the lost+found directories...What other paths am I forgetting?

View 2 Replies View Related

Fedora Installation :: Way To Exclude Packages From Preupgrade?

Nov 25, 2009

I was hoping to exclude two packages from preupgrade like Firefox for instance

View 2 Replies View Related

Fedora :: How To Exclude Package From Software Update?

Jan 21, 2010

On my Fedora 11 x86_64 computer I have installed OOo 3.1.1 from www.openoffice.org because I need features that Fedora disabled in the repository version.And the latter also shows up in Software Update. Now, I went around and around with this and I know that installing the 1.3.1.1 package will break my OOo. I don't want Software Update even to list the 1.3.1.1 package because sooner or later I will slip up and install it on accident.

Side note: Why does Software Update think 1.3.1.1 is newer than 1.5.1? If it really is newer, someone at OOo needs to learn arithmetic.I think I can add an exclude line to /etc/yum.conf. But I can't figure out the syntax, and I don't know which package to exclude - the one I don't want updated or the alleged update package? Both? Or just the first part "openoffice.org-ure"?

View 5 Replies View Related

Fedora :: Exclude A User From The Greeter List?

May 12, 2010

I would like to be able to exclude a certain user name from the list presented by the Greeter. Is that possible? I tried adding:

In the custom.conf file, but it didn't work.

View 10 Replies View Related

General :: Exclude Rsync Excludes From Delete?

Jul 9, 2010

im using rsync to sync files across multiple machines.

using the following:

rsync -az -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
--delete --delete-excluded --force --exclude=.git --exclude=.bundle
--exclude=tmp --exclude=log/* --exclude=*.log --exclude=*.pid
user@host:/path/to/src/ /var/build/dest

I want to exclude all log files from being transferred from the src to dest and delete all existing ones on the destination so im using --exclude=*.log with --delete-excluded which works great ...

but i want to keep a certain log file intact on the destination. I want a --exclude-from-delete option

Is this possible with rsync?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved