All Questions
13
questions
0
votes
2
answers
533
views
Copying files in Linux keeps full path
I made a script to, every 6 hours, copy a folder to a backup folder, then put them in /var/www/html/backup/.
My command to copy the files was cp -vR ~/world ~/backups/Backup\ on\ $date/world
My ...
2
votes
2
answers
5k
views
Using Robocopy to search and copy directories using pattern matching
I have tried to find an answer to this but most questions related to robocopy and pattern matching are focused on excluding folders whereas my intention is to include folders.
Assuming i have the ...
2
votes
1
answer
347
views
Where to place my server, configuration and (big) data? /srv? /etc? /usr/local/bin? /home/me/.whatever?
I was searching this site for good answer to my question, the best I could find was this. (I'd guess to put my config in /etc, application in /usr/local/bin and data in either /home/firda/.tunnel or ...
3
votes
2
answers
5k
views
How to change default duplicity archive directory?
How can I change the duplicity default archive directory (~/.cache/)? The following option seems to be ignored.
Option --archive-dir=/volume4/duplicity/cache/ --name backup
duplicity 0.6.21 (...
2
votes
3
answers
202
views
Given an original and backup filesystem, how can I find out if any files are missing?
I found from this posting on Stackoverflow, if you just wanted to get a list of corresponding files whose content differs, then you could execute:
diff --brief --recursive dir1/ dir2/
...and trying ...
0
votes
1
answer
105
views
rsync synchronizing files only without creating folders on destination
Is it possible with rsync to not create directories on destination?
MY SOURCE:
a/
a/x.txt
b/
b/y.txt
b/c/g.txt
MY WANTED DESTINATION:
d/x.txt
d/y.txt
d/g.txt
Is there any way to do this with ...
6
votes
2
answers
3k
views
Is it necessary to include the /run directory in backups?
I use a variant of the simple script below from the Community Ubuntu Documentation described
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/sys --...
1
vote
2
answers
266
views
Run command to untar file in timestamped folder?
I have a .tar file that is transferred to our server every night by one of our client management systems. The file is a compressed .sql file which I need to uncompress and dump into our database.
The ...
0
votes
2
answers
224
views
Automatic folder backup from XP to Windows Server 2003
My HR/Finance manager stores important files & records in her Win XP desktop PC and she rarely copies all her files into our file server that runs on Windows Server 2003 (the last time she did it ...
0
votes
1
answer
276
views
What directories to/not backup
I'm setting up rsnapshot to backup a production LAMP server. These are the directories that currently are going to be backed up.
/home
/etc
/usr/local
/root
/var
What directories can I exclude from /...
0
votes
2
answers
656
views
Hard Link for Directories in linux
Hai,
How can i create hard link for my directories ?
When i use to make link from /var to /home it shows error on "Invalid cross-device link", How can i over come it ?
50
votes
14
answers
62k
views
Linux - What directories should I exclude when backing up a server?
I'm backing up a Linux server and storing it on another server.
I began with a simple
rsync -aPh --del server.example.com:/ /mnt/backup
Then someone pointed out that I shouldn't back up /proc, ...
80
votes
4
answers
52k
views
How to keep the full path with rsync?
When backing up with rsync, How do I keep the full directory structure?
For example, the remote server is saturn, and I want to backup saturn's /home/udi/files/pictures to a local directory named ...