LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-02-2017, 03:04 AM   #1
johannes.kepler
LQ Newbie
 
Registered: Jun 2007
Posts: 9

Rep: Reputation: 0
Zip/Unzip dir


Hi

I have an installed website in my dir /home/mysitecom/public_html

The dir as several dirs, with sub dirs, and symlinked dirs and files.

I'm trying to make a backup of all first, and after some modifications, restore that backup, with symlinks included (not the files it pulls).

This is not working

I'm trying first, inside public_html, run the command: zip -ry backup.zip ./

After the modification, I'm trying to restore it with: unzip -o backup.zip

Can someone help me out? I think I'm missing something here...

Kind regards

JKepler
 
Old 09-02-2017, 03:56 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,237
Blog Entries: 10

Rep: Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160
typically, you would
  • extract a .zip file with unzip, resulting in some files
  • compress some files with zip (creating a zip file)
for both commands, i recommend reading the manual.
i.e. 'man zip' and 'man unzip'
 
  


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
[SOLVED] Does "unzip -X" work in Info-ZIP UnZip 6.00? ruario Linux - Software 5 09-15-2013 04:21 AM
What is the difference between using "jar xvf" and "unzip" to unzip the zip-file? thomas2004ch Linux - Newbie 4 08-27-2009 05:11 AM
how to unzip a zip file on a selected dir in linux ? sunlinux Linux - Software 1 06-12-2006 04:52 AM
Zip and Unzip concoran Linux - General 4 08-02-2002 07:12 PM
how do i unzip a .zip? lax2sman Linux - General 2 02-11-2002 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:35 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
Open Source Consulting | Domain Registration