Questions tagged [recursive]

68 questions
112
votes
13 answers

Using wget to recursively download whole FTP directories

I want to copy all of the files and folders from one host to another. The files on the old host sit at /var/www/html and I only have FTP access to that server, and I can't TAR all the files. Regular connection to the old host through FTP brings me…
user9406
82
votes
3 answers

logrotating files in a directories and its subdirectories

Is it possible to get logrotate to consider logfiles in a directory and all its subdirectories? (i.e. without explicitly listing the subdirectories.)
ithinkihaveacat
  • 1,604
  • 3
  • 14
  • 18
31
votes
5 answers

How to upload a directory recursively to an FTP server by just using ftp or lftp?

I am writing a Linux shell script to copy a local directory to a remote server (removing any existing files). Local server: ftp and lftp commands are available, no ncftp or any graphical tools. Remote server: only accessible via FTP. No rsync nor…
Nicolas Raoul
  • 1,314
  • 7
  • 22
  • 43
18
votes
5 answers

How do I find (or exclude) all directories and sub-directories matching a certain pattern (in Linux)?

I'm trying to use the Linux find command to find all directories and sub-directories that do not have .svn (Subversion hidden folders) in their path. I can only get it to exclude the actual .svn directories themselves, but not any of the…
Jason Down
  • 303
  • 1
  • 6
  • 11
13
votes
2 answers

How can I resolve DNS problems somewhere in the middle of recursion?

I have a really weird problem with my DNS. My domain name (strugee.net) is unresolvable from some networks, and resolvable from others. For example, on my home network (same network the server's on): % dig strugee.net ; <<>> DiG 9.10.3-P4 <<>>…
strugee
  • 901
  • 10
  • 25
9
votes
2 answers

Bind DNS Recursion Slow

We have just setup a recursive DNS server using the latest stable release of Bind 9.10 We are finding that recursive DNS lookups are quite slow. Anywhere from 1 - 3 seconds. Once the lookup is in cache, DNS resolves in a matter of milliseconds as…
9
votes
2 answers

Linux & SVN: How to remove all versioned files but KEEP directory structure, ignore .svn dirs?

I want to remove all the versioned files from my repository, but KEEP the versioned directory structure. Obviously I want to leave all the .svn directories untouched. In other words, I want to completely empty a working copy's directory structure…
Brian Lacy
  • 1,093
  • 4
  • 15
  • 23
8
votes
3 answers

Change all file permissions to 644 and all folder permissions to 755 recursively

How to change all file permissions to 644 and all folder permissions to 755 recursively using chmod in the following two situation: If they had 777 permissions Regardless of the permission (with ANY permissions)
smhnaji
  • 609
  • 2
  • 11
  • 24
8
votes
3 answers

Can Hyper-V run in a virtual machine?

Ok, we all know (or should know) that Microsoft's answer is a plain "NO!". But we also know that recent hypervisors can support nested/recursive virtualization, provided the underlying CPU offers hardware virtualization; VMware's recent products…
Massimo
  • 68,714
  • 56
  • 196
  • 319
7
votes
5 answers

How can I recursively bzip2 all files that aren't bzipped?

How can I recursively bzip2 all files that do not end with the .bz2 extension in Linux?
Alon Gubkin
  • 666
  • 3
  • 7
  • 12
6
votes
2 answers

restarting all specific units on systemctl without for loop?

Is someone here able to start/stop/reload/... a list of units specified with a wildcard or similar method on systemctl? I try do do somethin like: systemctl restart openstack-nova-*.services or systemctl restart openstack-nova-?.services but it's a…
Dr I
  • 943
  • 16
  • 33
6
votes
8 answers

Linux Recursive Delete Keeping The First Dir

First question here, I'm usually on StackOverflow. I need to delete all the contents of a directory, but not the directory itself as I don't have permission to delete that actual directory. This seems simple, but I'm unable to find the command for…
Marc
  • 405
  • 2
  • 5
  • 11
6
votes
11 answers

Recursive move utility on Unix?

Sometimes I have two trees that used to have the same content, but have grown out of sync (because I moved disks around or whatever). A good example is a tree where I mirror upstream packages from Fedora. I want to merge those two trees again by…
Thomas Vander Stichele
  • 1,055
  • 4
  • 14
  • 16
5
votes
2 answers

Bypass DNSSEC for local Stub zones

I am using bind 9.9.2 as a DNSSEC validating recursive resolver in an Internet DMZ. I want to point to my internal DNS servers as stub zones (ideally) or anything except slave zones (to avoid very large zone transfers). We use a routable ip space…
Starsky
  • 103
  • 1
  • 8
5
votes
2 answers

Cache updates when migrating DNS from one provider to another

This may be a Windows DNS specific question or a general DNS best practice question - I'm not sure! We migrated our 3rd party DNS provision from provider A to provider B. I noticed that our internal recursive windows DNS servers still had NS records…
JohnCC
  • 292
  • 1
  • 6
  • 14
1
2 3 4 5