I am having scenario, the following directory contain files.
Name Modiffiled Date
File1.bak 18 Oct 2015
File2.bak 17 Oct 2015
File3.bak 16 Oct 2015
The above files in GB's and want to sync only two latest files on Dest Dir, so, is there any way do this instead of moving / copying files to separate folder?
Thanks
Rashid
Related
This makes no sense to me: usr2 belongs to grpX, the directory is configured as bellow, so why can't usr2 copy his files to my folder? Is it because his files have different access settings? How can I chmod things so that this is never an issue (I want the files to inherit from my directory config)?
drw-rwS--- 2 usr1 grpX 4096 25 jun 18.28 data
I use jar xf file in a script to unzip a zip-file, which also contains empty folders but the empty folders are not extracted. Is it possible to extract empty folders with jar xf file?
Edit: In fact it works as Mike Slinn pointed out in the answer. I have now noticed that the empty folders actually turn into empty files when I use another zip-file which was not created by myself. What could be the difference between the empty folders in those zip-files? I use Windows 10 and JDK 1.8.0_144 64 Bit.
Yes. Here is proof:
$ mkdir empty # create an empty directory
$ jar -cf ~/junk.jar empty ./cache # add the empty directory and other directory to a new jar
$ jar -tf ~/junk.jar # list the contents of the jar
META-INF/
META-INF/MANIFEST.MF
empty/
cache/
cache/ssh/
cache/ssh/hostkeys
$ mkdir blah # make a temporary directory
$ cd blah # move to the temporary directory
$ jar -xf ~/junk.jar # extract the jar into the temporary directory
$ l empty # verify that the "empty" directory exists and is actually empty
total 8
drwxrwxr-x 2 mslinn mslinn 4096 Dec 24 19:42 ./
drwxrwxr-x 5 mslinn mslinn 4096 Dec 24 19:43 ../
(null).1001.1001
What is this folder? Where does it come from?
drwxrwxrwx 49 appusr appusr 4096 Jan 7 21:52 (null).1001.1001
I think it has something to do with Mr. Root impersonating Mr. AppUsr in a background task, but I posted to AskUbuntu last week, and nobody there recognized it.
Why am I asking? Well ...
On an Ubuntu box, I have a restricted-access applications user who is uid 1001 and gid 1001. Root launches Rserve under that user during boot. The Rserve session is writing into a Windows CIFS share. All seems to be functioning as intended ...
I'm finding these folders peppered throughout the application user's file tree:
drwxrwxrwx 49 appusr appusr 4096 Jan 7 21:52 (null).1001.1001
I'm finding these subfolders in various folders. Each of these subfolders is different, but they seem to contain partial temporary files, like stuff that I extracted from a tarball, or partial pdf writes.
My primary interest in these folders is that I've found that sometimes I need them and don't have them. There's a particular operation can work or fail depending on whether or not this folder is present. When writing a PDF from inside a knitr document that I call remotely from Rserve, I get this error message
## Error in plot.new(): cannot open file '', reason No such file or directory
I can't find an R reason for this, and it works when called from an rstudio-server session or from a Windows Rstudio IDE, but when called from Rserve, it seems to depend on having that folder present in the filesystem, and I'm quite sure that I didn't put it there! What is it?
I have read and tried these previous questions on Stack Overflow networks,
these solutions doesn't solved my confusion. So I am asking the same question again.
The questions that I've researched and doesn't solve my problem
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
I'm just trying to install WordPress on OpenShift by custom way than the one click install. I've cloned my openshift git repo on my desktop. Extracted, added and pushed wordpress.tar.gz to the repo and installed correctly so that i could login to the admin site.
my repo files look this way,
deena#home:~/Desktop/wordpress$ ls -al
total 76
drwxrwxr-x 7 deena deena 4096 Feb 4 23:20 .
drwxr-xr-x 13 deena deena 4096 Feb 6 22:11 ..
drwxrwxr-x 8 deena deena 4096 Feb 4 23:20 .git
-rw-rw-r-- 1 deena deena 9 Feb 4 16:41 .gitignore
drwxrwxr-x 2 deena deena 4096 Feb 4 16:41 libs
drwxrwxr-x 2 deena deena 4096 Feb 4 16:41 misc
drwxrwxr-x 9 deena deena 4096 Feb 4 16:41 .openshift
drwxrwxr-x 2 deena deena 4096 Feb 4 16:41 php
-rw-rw-r-- 1 deena deena 2130 Feb 4 16:41 README
I want to put the .htaccess file on this repo so that wordpress can use this in some RW mode. Where can I place the htaccess?
one man said on the listed question to place it on the config directory then action_hook to use it on the base directory,
where's the config directory? should I do any hard work to make it work? (I don't know whats action_hook honestly)
some questions were answered to place it on the base dir, that's the listed dir, some other said to place it in the app directory, the wordpress directory seen here.
I tried placing in the base as well as the app directory nothing happens other than the wordpress is reinstalled the next time I point my browser to the app URL.
So making the question clear again, in layman terms, where to place the htaccess file to make it accessible for WordPress?
thanks.
peace
I think, here you can find a solution.
The .htaccess files needs to go in the same directory as your core WordPress files, wherever your wp-config.php file is. However, since you are deploying this site via git, with all of the WordPress files included, whatever changes that are made to the .htaccess file by WordPress will be reverted once you do another git push. If you don't plan on doing any more git pushes, then everything should be fine. The same thing goes with any of the plugins or themes, they will be removed on a git push if you install them using the WordPress admin interface. You will either need to make your changes locally in your git repo on your workstation (adding themes, adding plugins, updating .htaccess), or you will need to use a quickstart that uses symlinks to store that information on the server in a different location. You could also use the WordPress OpenShift quickstart which is designed just for use with OpenShift, and helps you with a lot of these issues....
I am trying to move a Wordpress installation through svn but I am having problems.
Moving through FTP (Filezilla, copy to desktop then copy to new location on server) works perfectly.
Moving it using cp and mv in SSH works perfectly too.
Doing svn co <url> to checkout a copy of the repository results in 500 Internal Server Error and I can't fix it no matter what... recreating the .htaccess, deleting the plugins folder (no wp-admin access either), deleting the specific theme, etc.
The only difference I can find between my Wordpress folder that's been copied through FTP or SSH and the Wordpress folder created through the svn checkout is this (seen when doing ls -l in SSH):
Moved through FTP/SSH:
drwxrwxr-x 6 suddenm2 suddenm2 4096 Nov 14 19:35 wordpress-folder
Svn checkout:
drwxr-xr-x 5 suddenm2 suddenm2 4096 Nov 14 19:21 wordpress-folder
What exactly do the "5" and "6" mean, and what could the difference in file permissions mean? Thank you
The "5" and "6" mean the number of directories inside the directory, or the number of hard links pointing to the file if it is a file.
You have different numbers of directories between the 2 copy. You probably should check if you are missing anything in the svn checkout.