| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 8 months |
| seen | Sep 25 '12 at 15:43 | |
| stats | profile views | 8 |
|
Sep 2 |
comment |
Shell variables not working? You're right. I noticed it and i was about to fix it, but i managed to delete my entire home folder in the proccess. Yay for me! Thank you for pointing it out though, hopefully it'll help someone else some day. Quick unrelated question: In a fresh ubuntu install, the folders located inside the home folder (Desktop, Downloads and whatever else is in there) are empty by default, right? If that is the case, could you possibly name all of the folders located in there? I only lost one important file and fortunately i have a backup of it, but i want all of my folders back. Could you help me out? |
|
Sep 2 |
revised |
Shell variables not working? added 88 characters in body |
|
Sep 2 |
asked | Shell variables not working? |
|
Sep 2 |
awarded | Student |
|
Sep 2 |
comment |
Compress a folder with tar? Yup, that worked much better. Thanks a bunch, appreciate it! |
|
Sep 2 |
accepted | Compress a folder with tar? |
|
Sep 2 |
comment |
Compress a folder with tar? This is perfect, thank you. I have one tiny issue though. After creating a tar file of /var/www, it is placed within /var/www directories in the tar file. Here's the code i'm using now sudo tar -czf ~/www_backups/$time.tar /var/www/" Imagine i have a file called test.txt inside /var/www. After making a tar copy of the file, when i extract it it will be placed inside /var/www directories. Does that make sense? I hope it does, kinda hard to explain. I will check for BZip2 support, thanks for the suggestion! |
|
Sep 2 |
asked | Compress a folder with tar? |
|
Sep 2 |
awarded | Scholar |
|
Sep 2 |
accepted | Automatic scheduled backup of website (/var/www and MySQL dump) |
|
Sep 2 |
comment |
Automatic scheduled backup of website (/var/www and MySQL dump) I got it working, now i just have to fix the mysql dump. One question though, could you possibly add the hour:minute to the $time variable? That would be very appreciated. And also, is it possible to only copy the contents of /var/www? As of now, it copies the entire www folder, i would like to only copy what's in it if that is possible. |
|
Sep 2 |
comment |
Automatic scheduled backup of website (/var/www and MySQL dump) Thank you! I'm a bit of a newbie, but i'll try to figure this out. What does the archive option do? I tried running one of the commands and it copied all the files to the specified location, but it didn't compress it or anything as far as i could see. |
|
Sep 2 |
answered | Apache not responding on port 80 after forwarding port? |
|
Sep 2 |
asked | Automatic scheduled backup of website (/var/www and MySQL dump) |
|
Sep 1 |
awarded | Editor |
|
Sep 1 |
revised |
Apache not responding on port 80 after forwarding port? deleted 869 characters in body; edited title |
|
Sep 1 |
asked | Apache not responding on port 80 after forwarding port? |