LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I needs to Zip the whole SVN Folder with a Password in LINUX (https://www.linuxquestions.org/questions/linux-newbie-8/i-needs-to-zip-the-whole-svn-folder-with-a-password-in-linux-932088/)

success3746 03-01-2012 01:06 AM

I needs to Zip the whole SVN Folder with a Password in LINUX
 
Hi,

I am really new to LINUX.Since,now we are using the LINUX Server for the SVN,and we needs to make a schedule at night to zip the whole svn folder,with a password.

I am really,not sure,how to write this command in LINUX.First of all,is it i needs to have UBUNTU Software to run this in the terminal.?

And how to write this command in LINUX,to zip the whole svn folder,with a password ?

I badly needs your help,and I needs to do it by today night.I am stuck. Currently,I am running on windows XP.

My mailling address is premila.devi@nexbis.com

coralfang 03-01-2012 03:55 AM

If you're using it for backups on the linux machine only, you might find it more suitable to use tar/gzip compression instead of zip. this is how i compress/encrypt files anyhow:

Compress the folder:
Code:

tar cvzf svnfolder.tar.gz svnfolder/
And then encrypt it with gpg:
Code:

gpg -c svnfolder.tar.gz
Type a password twice and svnfolder.tar.gz.gpg is your encrypted/password protected file.


When you want to decompress/decrypt it:
Code:

gpg -d svnfolder.tar.gz.gpg | tar -xzvf -
There are probably simpler ways to do this, but this is the method i am personally familiar with.

singhjc 03-01-2012 04:47 AM

Hi,

as corl says it is good way to compress as well as encryption but there is another simple way is that if you really want make a zip with passwd then use command like

# zip -er svnfolder.zip svnfolder

here you will have to provide password twice and then
it will compress as well as encrypt the your folder.

Regards

Singhjc

lithos 03-01-2012 05:29 AM

As coralfang suggested it's best to try TAR/Gzip the files and protect it with some
crypt (mcrypt) tool.

good luck


All times are GMT -5. The time now is 07:12 AM.