gvNIX: Recover a backup when App crashes - gvnix

Which is the way to recover a gvNIX backup? I have a trouble with one command and the webApp crashes. I would like to revert to a previous version.

If you saved a copy with 'backup' command just unzip the generated .ZIP file.

Related

Issue when using "Workspace Clean" in Azure devops

I've got privately hosted pipelines using Azure DevOps and want to be able to clean the directory before each deployment. I found that I could use workspace: clean all which works and deletes all of the content in the directory, the issue being that the task immediately fails afterwards with the error:
I don't understand why this error is happening, it clearly deletes the content but then immediately fails . Has anybody else encountered this?
##[error]The directory is not empty. :XXX
When other processes are using the contents of the target folder, I run into a similar issue.
For example:
When I set the clean: all and keep the folder opening in File Explorer, I get the error.
To solve this issue, you could try the following points:
Check if the target folder is using by other processes.
You can restart the local machine to block the background process。
Try to manually delete the folder D:\azagent\A5\_work\15\client_build and check if it could work.

Using tar -zcvf against a folder creates an empty compressed file

I am ssh'ed into an Acquia server trying to download some files. I need to backup these files for local development (to get user uploaded images mainly).
I am using the following command:
tar -zcvf ~/download/stage-files_3-19-2015_1344.tar.gz files/
I have read/write access to the download folder. I created that folder. I am in the parent folder of "files". And permissions to that folder are 777.
I was able to run this the other day with no issues. So I am very confused as to why this is happening now.
Actually I just figured this darn thing out. Must have run out of disk space because once I removed a prior compressed backup of the files it started running just fine. Dang disk quotas. Sorry guys.

Perforce - marking local file as latest revision

I've got a following problem:
There are many huge files(gigabytes) on repository, they are not yet in my workspace, but I already have them on my local disk from other source(the same copy as the latest revision).
Is there any possibility to move these local files to appropriate subdirectory of my workspace and mark them on P4 server, that they are the same as latest revision, so I don't have to download them again?
Thanks in advance
The p4 flush command should do the trick here. In this situation, you would copy the files to the appropriate location in your workspace, then run:
p4 flush //path/to/file.ext#head
You can do an entire folder using:
p4 flush //path/to/folder/...#changelist

TortoiseSVN, how to dump a repository?

I use Windows 7 and also I use TortoiseSVN to keep track of my code, now I want to migrate my repository to a cloud-service and the requirement is create a *.dump file, but I can't find a way to create it. Some forums say to use "svnadmin" but I can't find it also.
My question is how can I create a *.dump file with TortoiseSVN?
TortoiseSVN ships the svnadmin utility with it. It is a command line utillity. So you will have to create a dump of your repository in the command line.
To create a dump of your repository, use
svnadmin dump C:\SVN\MyProject > C:\tmp\MyProject.dump
where C:\SVN\MyProject is the path to your SVN repo and C:\tmp\MyProject.dump is the path to the dump file, which will be created.
To import your previously made dump file into a new repository, use
svnadmin load C:\SVN\MyProject < C:\tmp\MyProject.dump
where C:\SVN\MyProject is the path to your new SVN repo and C:\tmp\MyProject.dump is the path to the dump file, which should be imported.
Subversion 1.7 now has the svnrdump command line utility.
svnrdump dump https://host/repo > repo.dump
Note that this always creates a dump with deltas, which might not be what you want.
TortoiseSVN is a svn client. It cannot take a dump of your repository. You need a tool like svnadmin on the server hosting your SVN repository to take a dump. You need access to the server and its filesystem.
Also see here for migrating a repository
svnadmin is part of the SVN server, so you should have a direct admin access to your repository server.
The first thing you need to do is follow this tutorial to get some idea about how to use TortoiseSVN on the local machine.
http://www.thinkplexx.com/learn/howto/scm/svn/how-to-create-and-use-local-svn-subversion-repository-on-windows-or-linux-simple-and-fast-step-by-step
once you have done with above tutorial and committed your files to the repository, execute below command.
svnadmin dump TortoiseRepository > dumpfile
If your TortoiseSVN repository is not called 'TortoiseRepository' just change the name above to whatever you have called it. If the dump works you should see lots of '*Dumped revision' messages. The 'dumpfile' now contains an entire export of your TortoiseSVN repository and all the revisions, comments etc.

InstallShield rollback backup directory?

When InstallShield is about to overwrite a file, it first create a copy of that file, so that in case of some installation error and the installation needs to abort, The system could be restored to its original state (rollback).
I would like to know where is that directory?
The backup directory is different from machine to machine, and from setup to setup. you can find out by reading the installation log. See http://resources.flexerasoftware.com/web/pdf/archive/msi_writing_to_the_log_file.pdf

Resources