Linux Server: How can I copy overlapping files from backup folder with subfolder (directory) with all subfolders and files to newer folder(directory) withhout touching newer pre-existing files. Want only override overlapping files.
Just use RSYNC. You can find examples here:
http://www.tecmint.com/rsync-local-remote-file-synchronization-commands/
Related
I accidentally deleted the alfresco-community\tomcat\webapps\share\themes directory including the alfresco-community\tomcat\webapps\share\themes\wcmqs.war file. How do I recover this file or rebuilt a new on linux?
I was able to copy themes folder from a new install (windows) but not the war file.
Finally, I got to do this:
Download the Web Quick Start zip bundle file: alfresco-enterprise-wcmqs-4.2.8.zip
Locate Alfresco installation directory. Copy the AMP files into
the relevant amps directories for Alfresco and Share:
Copy the alfresco-enterprise-wcmqs-4.2.8.amp file to the amps directory.
Copy the alfresco-enterprise-wcmqs-share-4.2.8.amp file to the amps-share directory.
Apply the AMP files for the Tomcat application server, using the apply_amps.sh file in /bin directory.
is it possible to set a 'rule' that tells TortoiseSVN to automatically resolve conflicts on a specific folder?
ie. we have a shared resources folder - "/shared" that we use to store our latest bin files in. when we do a local build, the local bin files in that folder gets overwritten.
next time we do an svn update on that folder the update should pull the latest bin files from SVN and overwrite the previously locally-built bin files but this will throw a conflict because the files are binary and cannot be merged (and, should not be merged anyway)
we would like to setup a rule that tells tortoise to always "resolve using theirs" on that /shared folder ("svn update -R --accept theirs-full")
There's a SVN misuse here. If the files should not be merged as you said, the directory should be set to ignore all .bin files (svn:ignore). It doesn't make sense keep in version control binary files that are changed frequently causing so much collisions.
In your place, I would delete all .bin files from this folder. If it's really necessary to keep the files versioned, I would create a directory and place these .bin files in there, avoiding frequent changing.
But if you really want to keep the files as they are, I recommend you to write client-side hooks for post-update events. See TortoiseSVN Docs for more information.
I am creating a svnrepository using svnadmin create svndump
In the svnsump I am creating a folder with the name trunk and importing some of my existing files.
svn import /home/somefiles/ file:///home/svndump/trunk/
But when i see trunk folder it does'nt contains any folder which are imported from somefiles folder.
but when i looked the files using svn log file:///home/svnadump/trunk/ i can see the files .
it seems files are copying but they are not adding to the repository..
how to add files to repository???
Please help me..
Thanks in Advance.
You should be using svn ls to view the contents of repository.
For adding files to repository once you have imported, the standard way is to checkout a copy, add some files using 'svn add' and them commit them to the repository.
I have copied a folder say "folder" which is maintained in CVS as folder_backup.
$cp -af folder folder_backup
Frequently I cvs update "folder" and I want folder_backup to be in sync with folder.
Is there a automatic way to sync both folder and folder_backup whenever folder is cvs updated.
Both are in the same machine.
Well if you mean that 2 directories are on the same machine but not on the same drive, you'll need hard copy.
If only need to do backup from local CVS workdir into the backup directory, you need a unidrectional syncing tool. Rsync is one of them and easy to use. AFAI remember something as simple as rsync dir_from dir_to will to the trick.
If you mean that you want to be able to modify either of that 2 workdirs and you want to merge those 2 directories once in a while, you'll need a bidirectional syncing tool: Unison is one of them. I think it is quite hard to configure for the merge option, but it is worth the cost . See wikipeda page to compare syncing tools
If the folders are on the same system the best option is to link folder.
ln -s path/to/folder_backup/ folder
Can I safely rename the cygdrive folder? Also, I would like to add other folders at root and map them to folders on windows in the same way as /cygdrive/c maps to my C drive. Is that possible?
Yes, you can. See The Cygwin Mount Table in Cygwin's documentation. I have my documents folder mounted as /doc. These mounts end up in the registry and are retained across reboots etc.
I wouldn't rename cygdrive as I don't know what that would do, but you can map other directories at root to various windows directories using the mount command.