I would like to create custom backup sets for Mozy which exclude certain directories. For example, I would like to backup my Itunes folder, but exclude all podcasts. I have created a backup set which searches in /Users/me/Music and used this query
kMDItemPath == "*Podcasts*"wc
to exclude all matching files. However, nothing matches. Queries which use the kMDItemFSName spotlight attribute work fine, but any query using kMDItemPath doesn't seem to work at all. What am I doing wrong?
We have a windows 2003 AD and are using Folder redirection to redirect the users My Documents to a share. Is there a way to save certain filetypes (*.mp3, *.avi) or folders (My Music, My Pictures) on the user's hard disk instead of saving on the netwerk share?
I'm aware of the GPO setting 'Exclude directories in roaming profile' but I'm not sure if that will do what I want (we're using redirected folders)
I just noticed a few directories in C:\ with long, random hex values. Each of these contains an update directory.
When I click on the update directory, I get an access denied message, even though my account has admin privileges (XP Home).
Two questions: How can I delete these folders, and how is it possible to restrict a folder this way?
Hello.
I've noticed that directories' permissions for my automounted USB hard drive formatted in NTFS in Ubuntu 9.10 are 700. This is inconvenient for me. On Ubuntu 8.04 LTS it was 777 everywhere and it was good. Where can I change those default automount permissions for such a drive?
Thank you.
I took a backup of a directory which has a number directories and files inside them. Recently some files have gone missing. I would like to just move over the missing files.
I prefer moving files instead of just copying as space is a premium on this particular box and the files are quite large.
How can i achieve this?
Im trying to set up multiple user directories on EC2 running Ubuntu, but im not sure how to set it up correctly so that i can serve files in the following format:
http://<ec2 ip address>/user_1/public_html/file1.html and
http://<ec2 ip address>/user_2/public_html/file3.html
and so on for every user that i add. I tried looking for the httpd.conf file but i coulndt find it i only found apache2.conf
Thank you guys.
Currently I've Followed this guide.
I pointed my C:\Users, C:\Program Files (x86), and C:\Program Files directories to their respective counterparts on the B: drive.
I used mklink /J D:\Users B:\Users (D was the C: drives name in recovery) but when the computer boots, all I get is that the profile can't be loaded.
I have to accomplish this, and don't really mind reinstalling as its a fresh install anyway.
I'm trying to figure out how to use the linux "find" command (or another command that will get the job done) to return a list of file paths/directories that do not contain a directory of a certain name.
~/web/domain1.com/public_html/bar
~/web/domain2.com/public_html/
~/web/domain3.com/public_html/bar
~/web/domain4.com/public_html/
I want all of the paths that don't contain the directory named "bar" (domain2.com and domain4.com). Any idea how I can get find to output such a list?
Thanks!
If you have an ssh account and a hacker can get his hands on your account then the hacker can almost do anything on your server. Is it possible to limit a ssh account to access only on some specific directories with some limited privileges?
So, I'm trying to redirect any pages to a file, but avoid redirecting anything thats an existing file or directory.
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -d
RewriteRule ^(.+)$ $1 [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ /index.php?page=$1 [QSA]
However, any directories still get redirected (existing files are fine and can be located.)
I'm doing a word search using the following command:
find . -exec grep -q [some_word] '{}' \; -print -o -name .svn -prune -o -name .ssh -prune -o -name .boneyard -o -name log -prune -prune -o -name tmp -prune
Is it possible to use a regex to exclude all hidden directories?
Note:
The current command traverses the entire tree from the current location and exclude those being pruned. The exclusion needs to work for any hidden directory regardless off location.
How can I delete Directories which are smaller than, say, 1000 KB?
I already have a file list from the command:
du -sk * | sort -n > sort.txt
but I don't know how to proceed.
We have just released a new major software product version.
In the past if you wanted visibility you would create a standardized pad file and you would submit it to hundreds of directories or you used web service that would do that for you.
These directories would then serve as first incoming links to your web site.
How about today? I think download directories are pretty much dead?
Do you think this is still good SEO approach today? Are these software download directories useless?
I have to access/write directories through php that are created by tomcat by upload process.
php apache:apache cant able to access tomcat:tomcat directories.
Please tell me what i should change to work it out.
I have the following situation:
multiple virtual directories under same application pool in IIS
copy of same DLL in all those directories (same version number)
a singleton class in one in this DLL
The question is, is this singleton class created only once for all those Virtual Directory instances or is there for each of there one singleton class.
The code looks something like this:
[
Transaction(TransactionOption.Supported),
ClassInterface(ClassInterfaceType.AutoDispatch),
Guid("7DE45C4D-19BE-4AA4-A2DA-F4D86E6502A8")
]
public class SomeClass
{
private static readonly Singleton singleton = new Singleton();
How does Windows with NTFS perform with large volumes of files and directories?
Is there any guidance around limits of files or directories you can place in a single directory before you run into performance problems or other issues? e.g. is a folder with 100,000 folders inside of it an ok thing to do
I wonder how to specify to the command "find" for searching files under current directory but skipping some specific sub-directories.
For example, I would like to skip sub-directories that match "./dir1/*.1/"
Thanks and regards!
Is there a way to delete all empty sub-directories below a given directory from a batch file?
Or is it possible to recursively copy a directory, but excluding any empty directories?
I have a mysql database of users that can login to my site and view content. I would like to block a couple of directories from certain users. What is the best way to do this.
Currently when a user logs in a cookie is created with their customer id and the customer is is used to display their content.
How would I block entire directories from my users???
Hi,
I noticed that neither the zip or jar targets are including empty directories. I googled a little and found this was a regression issue way back with 1.6 (.2 I think), but it was claimed to have been fixed. I was using 1.8.0 so I upgraded to 1.8.1, but am having the same issue. Anyone know of any workarounds besides adding dummy files to those directories?
Thanks,
Ben Anderson
I wonder how to list the content and remove some directories in an archive file?
For example, I have an archive file data.tar. I would like to list its content without extracting it. I also would like to remove some directories inside it matching "*/count1000"
Thanks and regards!
Hi, I have a main directory like :
/import/
and in /import/ i have lots of sub directories, containing audio files.
I would like to create a php script to move all the audio files from the sub directories into the main directory.
Thanks guys :)
Does anyone know of any studies done to show how much email will be rejected if there is not ptr record for the SMTP banner name of an email server?
Are reverse checks always done when enabled, or is it sometimes configured so if an spam program considers an email 'iffy', the reverse check is done?
I need to 301 redirect all requests coming in for requests to http//server.com to be redirected to http//newserver.com unless the request is for an arbitary list of directories we are maintaining on the legacy server (eg server.com/foo or server.com/bar)
I'm having a hard time working out how best to set this up and the regexs.
EG, I need:
http//server.com/page1 redirect to http//newserver.com/page1
http//server.com/dir1/page2 redirect to http//newserver.com/dir1/page2
http//server.com/foo to load as normal
http//server.com/bar/baz.html to load as normal
... because 'foo' and 'bar' are in my list of legacy dirs.
I'm wondering if the way to do this is to some how catch the matches in my list and then redirect anything else as a wildcard over to the new server -- but I can't make it work.
Can anyone help me with some regex and rewrites for those please?
Thanks
(apologies for fudging the http:// in the urls, ServerFault thinks I'm posting hyperlinks and won't otherwise let me post this)