LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-01-2012, 02:06 AM   #1
success3746
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
Unhappy 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
 
Old 03-01-2012, 04:55 AM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 384
Blog Entries: 2

Rep: Reputation: 96
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.
 
Old 03-01-2012, 05:47 AM   #3
singhjc
Member
 
Registered: Nov 2010
Location: Moradabad
Distribution: Redhat,Centos
Posts: 31

Rep: Reputation: 1
Smile

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
 
Old 03-01-2012, 06:29 AM   #4
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

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

good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I zip the program folder and unzip it after reinstall Linux? Will the programwork casualzone Linux - Software 8 01-12-2010 09:26 AM
how to unzip a zip folder in redhat linux varunkant Linux - Newbie 5 08-07-2008 02:03 PM
[REQ] RAR/ZIP archiver for Linux with password protection? p3ppit Linux - Software 2 04-24-2007 02:07 PM
How do I extract password pretected .zip files in linux i_s Linux - General 2 03-25-2005 05:47 AM


All times are GMT -5. The time now is 10:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration