Debian :: What Subdirectories Should Be Excluded In Backup

Jan 12, 2011

I am going to use 'rsnapshot' to create backups of my local & remote computers. My intension is that I can use these backups to restore disk images when needed -> install Linux from scratch and then copy the subdirectories from 'rsnapshot' backup to the new Linux installation.My question is what subdirectories should be excluded in the backup.

View 6 Replies


ADVERTISEMENT

Server :: Backup A Single Directory And It's Subdirectories On Lucid To A Freenas Box Across Network

Jul 20, 2010

This should be a quick one. I'm trying to backup a single directory and it's subdirectories on my Lucid Server to a freenas box across my network. This is what I'm using to do that..

rsync -r -a -v -z * --delete freenas:dSIBackups It almost works perfectly except for one problem. When a file is deleted at the source, this command doesn't seem to delete it on the receiving end. I assumed that the --delete would do that but aparently not. Can anyone think of a reason that this would happen?

View 3 Replies View Related

General :: Find Files In Subdirectories And Copy Them To Another Directory With The Same Subdirectories?

Nov 18, 2010

This question is very similar to this one except that I want to maintain the file's original subdirectories.

For example if I had

/temp/a/a.txt
/temp/a/a.jpg
/temp/a/b.txt
/temp/b/c.txt
/temp/d/d.txt
/temp/d/d.jpg
/temp/d/e.txt
/temp/f.txt

[Code]...

View 2 Replies View Related

Server :: Apache On Debian - 403 On All Subdirectories?

Feb 11, 2010

I set up a Debian box with Apache and everything works fine, but when trying to access files in a subdirectory, I get a 403 error. The error log shows the following:

Code:
(13)Permission denied: /var/www/site/images/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
I tried adding a <Directory> entry in the conf file for the site and even tried adding (with +r for all) an .htaccess file (.htaccess is not specified in the conf file and the root directory doesn't have one either), but nothing works.

[Code]...

View 1 Replies View Related

CentOS 5 :: Yum Priorities And Excluded Packages

Oct 21, 2009

I am trying to install the RPMForge Repository. I am following the instructions at : [URL]. After installing yum-priorities and *before* adding the RPMForge repository -
I went into /etc/yum.repos.d/CentOS-Base.repo
and added priority=1 to [extras] [updates] and [addons].

Then, when I run 'yum check-update' it says there are packages being excluded. I would have thought that before I had installed the 3rd party repo - that nothing should be excluded? Especially with everything set to the same priority. On a side note - this is a Xen VPS that we are renting... and the providors have commented out the [base] section (#[base])... I'm assuming this is is OK and is for my own protection.

View 6 Replies View Related

Debian :: Backup Purge Script - `/mnt/backup/subfolder': No Such File Or Directory

Nov 10, 2010

This script simply deletes files older than a certain age (in this case 7 days) from a certain location; I use it to purge old backups nightly, and it works as expected:

# delete backups older than 7 days
find /mnt/backup/*  -mtime +7 -exec rm -Rf {} ;

The problem is, every morning I get an email with an error message something like this:

find: `/mnt/backup/subfolder': No such file or directory

View 2 Replies View Related

Debian :: Used Backup-manager - Restore The Backup Data?

Feb 4, 2011

I am now preparing myself to upgrade lenny to squeeze and decided to do a backup on my system. I used backup-manager to do the job and it worked fine. how do you restore said backup data?

View 4 Replies View Related

General :: Sed - Replacing Only Text With Several Specific Lines Excluded

Jun 17, 2010

As much as I didn't want to ask a sed question, especially considering there's already one on this page I've looked as best I could and cant find the solution. Id like to use sed to replace occurrences of a pattern but exclude two or 3 specific lines that are not consecutive. For example I know with 1,10 i could exclude the first 10 lines, what is the syntax if I just wanted to exclude line 3 and 7. The sed command I'm working with right now is for rearranging Ethernets.

cat /etc/udev/rules.d/70-persistent-net.rules | sed -e '/'"$found1fullmac"'/!s/eth1/'"found1eth"'/' > /etc/udev/rules.d/70-persistent-net.rules

I would like to replace $found1fullmac with two variables representing line numbers to exclude from the replacement.

View 6 Replies View Related

General :: Zip -x For A Directory - Subfolder Contents Not Being Excluded Recursively?

Dec 9, 2010

I am attempting to use the zip command with the '-x' option to exclude a folder e.g. 'zip upload.zip public_html -x public_html/jquery/*'. However, parts of this folder are still being added to the archive. I made a shell script (saved as 'compress.sh' and ran as '. compress.sh') to do the archiving so I could test adding nested wildards for multiple subfolder levels.

Code:

#!/bin/bash
rm -f upload.zip
zip -r upload.zip public_html
-x public_html/jquery

[code]....

Each new line I added here that has the nested wildcards made the archive file size a bit smaller. Adding more /*'s than this didn't affect the file size. Even after all this though, there were still a couple megabytes of files and folders from the 'jquery' directory that were added to the archive.

Here's some examples of files and folders that were created after I unzipped the archive:
public_html/jquery/js/tablesorter/addons/pager/icons [folder]
public_html/jquery/js/tablesorter/addons/pager/.svn/entries [file]
public_html/jquery/js/tablesorter/build/.svn/text-base/js.jar.svn-base [file]

Why is it that despite all the -x lines, the files and folders like these were still being added to the archive? How can I simply recursively exclude the entire public_html/jquery folder from the archive?

View 4 Replies View Related

CentOS 5 :: Packages Excluded Due To Repository Priority Restrictions

Apr 14, 2010

So Im using CentOS 5, trying to install phpmyadmin for my server. Ive done it before but had to re-image my server because of some networking issues. This time when I go to do it I add two more repositories and go through and give all the appropriate ( I believed ) priorities. When I try to install phpmyadmin, I am getting messages that I need php5.2. When I try to install the dependencies, I get the message that i have "427 packages excluded due to repository priority restrictions." How do I fix this?

[URL] This is the guide I used to install phpmyadmin. I installed all the pre-reqs and Ive double and triple checked them all . . . . Ive also installed another repository, utterramblings. All to no avail. If code from the config files are needed I can pull them

View 2 Replies View Related

General :: How To Empty Several Subdirectories

Aug 18, 2010

I looked through google but can't find an answer for this..... say I have a directory called "files"; this directory contains several other directories..... what I wanna do is delete ALL the files within the subdirectories, but NOT delete the subdirectory. Can this be done easily without having to run a command for each subdirectory?

View 8 Replies View Related

Fedora :: Add X And All Subdirectories Of X To PATH?

Jun 24, 2010

Is there a way in .bashrc to say, instead of "add X to PATH, add X/Y to PATH, add X/Z to PATH", simply "add all subdirectories of X to PATH"?

[code]...

View 4 Replies View Related

Fedora :: Listing Subdirectories With Spaces?

May 19, 2011

I have want to list sub-directories with spaces but am facing the following problem:

My subdirectories are:
FirstDirectory
Directory with spaces
if I use
Code:
for directory in "`find . -type d`"

[Code]...

View 5 Replies View Related

General :: Create All Subdirectories Of A Path?

Dec 9, 2010

Is there an easy way to create all subdirectories of a path in linux ?

Something like

mkdir /a/b/c/d/e/f

executed in / should create directories a,b,c,d,e,f

View 2 Replies View Related

General :: Include The Subdirectories In A Chown?

Jul 19, 2010

When I installed a new copy of my distro on another partition, in order to preserve all the settings from my old my user account, I made a user account with the same name on the new installation, and then copied my old user account's files (in their entirety) to the new user account, overwriting it. I did the copying from the root account (where else? I assume the new user account can't overwrite itself while it's open), and root became the owner of everything I copied, making it impossible to open the new user account. So I then chowned the new user account's folder to myself. I still can't get in, because apparently, chown only chowned the top folder, leaving all subdirectories owned by root. How do I make chown include all subdirectories? I scanned the man page, but didn't see a parameter.

View 4 Replies View Related

Server :: Create SUBdirectories In Dovecot?

Jun 19, 2011

I wonder how i can get subdirectories (.INBOX/***/*** etc...) in dovecot.I just stardet a mail server and when i tried to create it from the mail client (MS Outlook) it says that the server wont allow it.

View 4 Replies View Related

Software :: Find Not Searching Subdirectories?

Jul 12, 2010

I tried searching for files in documents: joe@Debian:~/documents$ find -iname *.odt ./canadian-public-holidays.odt I then moved to the work_search directory which is located in documents: cd work_search joe@Debian:~/documents/work_search$

joe@Debian:~/documents/work_search$ find -iname *.odt

[Code]...

View 6 Replies View Related

Slackware :: Move Files From Within Many Subdirectories To Another One?

Jun 25, 2011

I have a large directory tree with my ebooks and some of these files are zipped. I would like to move all of the zip files to another one so I can manipulate them. Since they are all scattered inside the tree, I would like to do it quickly and painfully with CLI. How should I proceed?

[code]...

View 10 Replies View Related

Debian :: Dd Command - Backup Over LAN

May 10, 2010

My church is planning to purchase a NAS serving 9 PCs running Windows and Linux respectively. The new device apart from storing data, mainly photo, is expected to be used for backup keeping all PCs images.

I have been googling a while unable to find a solution running dd command over LAN.

View 9 Replies View Related

Debian :: How To Create Backup

Nov 17, 2010

i ma trying to learn how to configure lot of server's in Debian Distro what i want to to create backup from the original files easy to restore cos if i miss any configuration it will easy to restore omething like restore point in windows

View 6 Replies View Related

Fedora Networking :: Blocking Subdirectories, NOT A Whole Domain/IP?

Aug 8, 2009

So, let's say there was a website www.qwerty.com, which is completely appropriate if not necessary except for the asdfg subfolder (www.qwerty.com/asdfg), which contains,say, pornographic material I want blocked. Is there any way to block "asdfg" without blocking the entire domain (www.qwerty.com)? I already tried editing my hosts file, but apparently that only works for whole domains.Also, while we're at it, can the hosts file be used to actually block IP addresses, or just domain names (so if I wanted qwerty.com with IP of 128.127.126.125 to be completely blocked, but know my family or employees are little smarter than that, I could add the line "0.0.0.0 128.127.126.125" to prevent all access to that website)?

View 3 Replies View Related

OpenSUSE Network :: Nfs And /etc/exports - Excluding Certain Subdirectories

Jun 30, 2011

I have a nfs share on my 11.4 workstation at /abcd. I'd like to export everything under /abcd except for one directory /abcd/dontexport

I searched online for such an option but only came across noaccess option which doesn't seem to work.

exportfs says it is an unrecognized option if I run "exportfs -ra"

This is how my /etc/exports looks like:

Code:
/abcd*(rw,wdelay,root_squash,no_subtree_check,anonuid=12345,anongid=6789)

View 2 Replies View Related

General :: Delete Matching Files In All Subdirectories?

Feb 22, 2010

How can I remove all .swp files in all of my subdirectories under Linux?

View 4 Replies View Related

Ubuntu :: Bash To Sort Files Into Subdirectories?

Sep 4, 2010

i currently have hundreds of files all in a single directory. What I would like to do is create 8 subdirectories and move the files into the subdirectories based on the first character of the file name. Ideally, the script would omit any 'the' or 'a' and use the second word for filing purposes. No filenames have spaces. Instead they use periodsThe subdirectories will be:

0-9
a-d
e-h

[code]...

View 2 Replies View Related

Ubuntu Networking :: Sharing Directory, And It's Subdirectories?

Oct 20, 2010

I've been doing some file-sharing with Ubuntu. And I've noticed that the files only in the immediate directory is shared, the rest of the folders are shown in other PCs but access is denied. How can I share all the subdirectories in a folder without having to them manually?

View 6 Replies View Related

Ubuntu :: Icons For Subdirectories Of User's Folder?

Nov 24, 2010

I figured I'd try out the Ubuntu Minimal install; I liked the concept of minimal distros like Arch-Linux (with a what-you-need-is-what-you-get type of system), but I really liked the community and general support of Ubuntu. Anyway, everything went fine after I got GRUB working properly, up to the point when I found that there were no subdirectories in my user's folder (Templates, Documents, Videos, etc).

I just decided to create the folders I needed. However, there were two issues I came across when doing this: The items in the 'Templates' folder don't show up in the context menu like they should More importantly, the icons for each folder would have to be manually changed for every new icon theme (if I wanted to use a new icon theme, I would have to navigate to the theme's folder every time for each icon I wanted changed) I'm not too concerned with the templates at the moment, but I was wondering how I would make these icons dependent on the current icon theme. Is there some package I missed installing?

By the way, if it makes a difference, I'm trying to set up the default Humanity icon set (well, not default for me, since I'm using Ubuntu Minimal). Also, sorry if this question has been posted before (or if I find the solution immediately after posting, which almost always happens to me), I didn't know exactly what to search for...

View 2 Replies View Related

Software :: RAR Not Including Subdirectories - Warning No File

Oct 19, 2010

I am trying to create a script.

$test=exec ("rar a -r -v10M /var/www/html/utl/packed/folder.rar /var/www/html/utl/Downloads/folder/");

There is no files in /var/www/html/utl/Downloads/folder/ but a few folders are there which need to be added to folder.rar I am using correct exec and outputting it in php but output shows me Warning: No files.

View 2 Replies View Related

Programming :: Navigate To Subdirectories In A Shell Script?

Nov 23, 2010

I am having a directory.This directory has a lot of subdirectories which contain html pages and some c source code files,Makefiles etc etc.The script I am trying to write would be executed from one directory which has all these subdirectoriesFollowing is the set of directories and files you can see

Code:
ls
delete.sh lddbus Makefile misc-progs sbull scullc scullp short simple

[code]....

View 6 Replies View Related

Programming :: Search A String In The Files In The Subdirectories?

Mar 10, 2011

How can I search for a string (for example, a constant) in all the (.cpp) files in the current direcotire and subdiretories.

View 4 Replies View Related

Debian :: Create Automatic Backup

Feb 8, 2016

Like topic, I want to create a weekly backup of some folder to anoter partition (or external usb), compressed or not (folder also of 20/30 gb), with only root permission on file (or folder) created..This system, where I have installed debian jessie, is always on being used like a NAS..

View 1 Replies View Related







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