Zipping The Contents Of Directory
Jul 28, 2008
Zip the contents of a directory (/path/to/dir/*) and then include a file in that zip that is located here: /a/whole/different/path/file.jpg. Is there a ZIP parameter that allows me to include that JPG file in the ZIP file that I am creating? Can someone give me the command?
Also, instead of zipping the contents inside of the "dir" directory, can I zip the "dir" directory itself but exclude the full path when creating the zip (/path/to/ part). I can do this with the -j parameter but when I do it also excludes the "dir" directory and only ZIPs the content inside of it.
View 3 Replies
ADVERTISEMENT
Sep 18, 2008
I want to move the entire contents of a directory tree to another directory.
So for example we may have a directory with 15 directories inside, each directory contains files itself. I want to copy all the files from the directory tree into another directory located somewhere else one the file system. I want only the "files" to end up in the other directory and not the file structure too.
Im running CENTOS latest version.
View 4 Replies
View Related
Oct 13, 2009
What is Linux command for compressing all the files under a Directory, as
well as all the files in sub-directories under that directory, so that upon
uncompression the files are created in the right directory and sub-directory.
Also of course what is the command to un-compress this compressed file?
In case: the Linux OS here is Redhat Enterprise and the web server is Apache.
View 7 Replies
View Related
Sep 15, 2007
Can anyone tell me a simple way in Bash to copy all of the contents of a directory (and only the contents), including hidden files, into another, existing directory?
E.g.
Code:
# I have this directory structure
- directory_A
--- existing_file
-
- directory_B
--- some_file
--- some_subdirectory
--- .some_hidden_file
# I want to end up with this
- directory_A
--- existing_file
--- some_file
--- some_subdirectory
--- .some_hidden_file
-
- directory_B
--- some_file
--- some_subdirectory
--- .some_hidden_file
# I *don't* want this
- directory_A
--- existing_file
--- directory_B
----- some_file
----- some_subdirectory
----- .some_hidden_file
-
- directory_B
--- some_file
--- some_subdirectory
--- .some_hidden_file
So far I've been stymied in finding a simple way to do this from the command prompt.
View 1 Replies
View Related
Feb 12, 2007
when I check the top for my server is making backups and sometimes the root is zipping and unzipping!
I have root access and my srever is linux (centos)I need help how can I check what is wrong? why the server is running these? zip-unzip-pkgacc...
top - 16:58:14 up 76 days, 20:15, 1 user, load average: 5.56, 4.46, 4.51
Tasks: 204 total, 1 running, 200 sleeping, 1 stopped, 2 zombie
Cpu(s): 5.1% us, 1.1% sy, 0.0% ni, 39.5% id, 54.2% wa, 0.1% hi, 0.0% si
Mem: 2074160k total, 2057376k used, 16784k free, 59232k buffers
Swap: 1052248k total, 102896k used, 949352k free, 680504k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
20709 nobody 16 0 52600 39m 3976 S 8 1.9 3:33.61 httpd
31290 nobody 15 0 54416 42m 3808 S 2 2.1 7:06.79 httpd
31333 nobody 15 0 52988 39m 3728 D 2 2.0 3:52.61 httpd
1244 nobody 15 0 42144 29m 3192 S 2 1.5 0:14.32 httpd
14009 mysql 15 0 325m 166m 3220 S 1 8.2 538:10.84 mysqld
26177 nobody 16 0 51812 39m 4080 S 1 1.9 4:34.83 httpd
22915 root 16 0 3920 1076 760 R 1 0.1 0:02.56 top
2264 root 34 19 13388 9628 644 D 1 0.5 0:20.90 pkgacct
333 root 15 0 0 0 0 D 0 0.0 80:11.82 kjournald
533 mailnull 15 0 7672 1720 1424 S 0 0.1 1:42.76 exim
18720 nobody 16 0 51132 39m 3792 S 0 1.9 3:28.69 httpd
7977 root 15 0 0 0 0 S 0 0.0 0:25.24 pdflush
20260 nobody 16 0 54088 42m 4024 S 0 2.1 3:08.79 httpd
20468 nobody 15 0 58348 46m 3796 S 0 2.3 3:25.07 httpd
View 3 Replies
View Related
Jul 20, 2008
OK so I'm on the shell and looking at the contents of my home/ directory which has all the various accounts. In each account directory are subdirs such as mail, logs, tmp, etc, and public_html. Is there a way (or a ZIP command) to be in the home directory and create a massive ZIP file containing all the account directories, each containing ONLY the respective public_html subdir for that account?
Using the command "zip -r Backups.zip ./" seems to include all those extra folders (such as mail, etc.) that aren't needed.
View 3 Replies
View Related
Aug 15, 2014
I have 2 problems:
Firstly I wonder if there is any possibility to limit the number of cores the plesk backup zipping tool uses? This pigz takes up all my CPU. Is there any way I can reduce the amount of cores it uses because all my websites are down every time a backup takes place for around 3 minutes.
Secondly I get the following in my syslog:
1 baby plesk sendmail[20189]: Error during 'check-quota' handler
I don't know what is wrong. I think it's since the upgrade to Plesk 12. I now have 12.0.18 Update #13.
View 9 Replies
View Related
Mar 25, 2009
I got this warning message from a script I was working on to read XML feeds.
Warning: file_get_contents(url) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:Apache2.2htdocs est5.php on line 8
but when i run the url itself, it works fine.
i already set allow_url_fopen = On
View 2 Replies
View Related
Jun 26, 2008
i have to reload a page several times. at least once. the templates show up fine, but the actual images and contents do not show up unless i reload the page....this is evident during peak hours but not during normal hours.....
i've done tracert, no lost packets.
View 5 Replies
View Related
Jun 22, 2008
When some jobs done via php scripts which use file get contents , page gives internal server error without waiting.
View 3 Replies
View Related
Jun 17, 2009
how to setup Nginx webserver on a cpanel server to serve static contents,
say /images folder from every domains hosted on the server so that Apache's load will decrease?
View 12 Replies
View Related
May 23, 2015
When i add the private key and certificate via plesk panel, i get the following error:
ERR [panel] Unable to set the certificate: Unable to put certificate file: Unable to arrange cert file: file_put_contents failed:
View 1 Replies
View Related
May 31, 2007
I have a situation like this:
There is a directory say, "Master" and inside, "Master" there is sub-directory, "Slave". A user who has access to, "Master" should be able to access, "Slave" automatically. However, a user who has access to, "Slave" should not have access to, "Master". Inside cPanel this type of protection is not possible.
View 3 Replies
View Related
Dec 11, 2008
How do I direct my httpd file to point to:
home/USER/public_html
instead of:
C:Users estetc...
I want to do this to make my test server just like the remote server.
View 5 Replies
View Related
Dec 28, 2007
I just purchased a brand new 10K 150GB drive. How can I take an exact copy of my current drive and transfer everything over to the new drive? I think I need to create a snapshop, or mirror it somehow.
What software will do this? I was told trueimage, but its very pricy, is there anything else?
View 8 Replies
View Related
Nov 1, 2009
Which files could I safely delete/archive from the usr directory? Also, what is the command to list each subdirectory's size?
View 8 Replies
View Related
Jan 31, 2008
If we want to Create output of "Tar" a directory ; to different server, how can we do that ?
I tried this command, but it does not works
tar -cvf oldserverzip.tar /directory | ssh newserver@newserver.com
Basically, what we want is to shift a site "dump" to another server, without creating a copy at source server (as there is no space available there to create a "dump")
View 12 Replies
View Related
Aug 14, 2007
Cpanel 11
Fedora
Is there any particular reason or advantage to having SSL files load from a different directory than the http files load?
for instance the http home files are in
/home/domain
is there any reason that an index.html (unsecure file) would need to redirect secure files from a directory?
View 4 Replies
View Related
May 6, 2007
how I go about unlocking my bin directory and making it writable again. I tried to do installworld with the latest freebsd release and as soon as it gets to the bin directory I get a permissions denied error. I looked at the permissions and ownership compared to another freebsd box and they all look the same. I tried to create a file by using touch just to test it and I received permission denied error.
View 3 Replies
View Related
Apr 21, 2007
I want to have a directory that i want to set up so you can only a script can see files in a directory. They will be getting the file names from the database, i have turned off directory browsing. I have also set up a Robots.txt and stopped robots from scanning the directory. Is there anything else i can do?
Also is there and software that allows you to download an entire site. Even if it is gigs of content. If so, how do i set it so it will stop that from happening. I am on linux. Centos running Cpanel.
View 2 Replies
View Related
Mar 9, 2009
I know that /www is an alias (symlink) for public_html, but I came across an account with virtual_html. Is there a difference between virtual_html and public_html?
And while I assume secure_html is for secure files, how does it tie in?
View 5 Replies
View Related
Aug 20, 2008
I'm trying to use SSH to delete a directory. It won't delete via FTP.
I've tried variations of the below but nothing seems to work;
rm -f [folder]
rm /-f [folder]
the directory that should be deleted is test.crossroadsclub.net, so I use that as the folder.
View 5 Replies
View Related
May 23, 2008
how do i protect a file directory from be accessed view a web browser but still allowing scripts like flash to access it?
i have a folder with xml files in it and i don't want a user pulling them up via there webbrowser.
View 3 Replies
View Related
Oct 30, 2008
I need to make this writeable but I can't find it on my server with my FTPclient. Can someone tell me what it is and where it's likely to be?
Maybe I have to create one?
View 1 Replies
View Related
Aug 6, 2008
I have 10 GB partition and we have mount /var direcotry and now it has been full 97% what can i do and how to manage it and i have no other option because no other space is available to create new partition and mount there.
View 10 Replies
View Related