- /mnt/A
- /mnt/B
Code: Select all
rsync
Code: Select all
rsync
Code: Select all
man rsync
Code: Select all
rsync -av /mnt/dir/files /mnt/dir/files
Code: Select all
rsync -av /media/sdc1/dir/ /media/sdb1/dir/
And of course you already searched the Web for something insanely obvious likeselPan wrote:when I run rsync it gives "denied 13".
Code: Select all
rsync "denied 13"
Code: Select all
rsync "denied 13"
This is my lineGarryRicketson wrote:I can not guess, maybe show us exactly how you are writing the command,
Code: Select all
man rsync
has some good examples.
It should be something like this:If it is usb devices, /media , might be better, in any event it would be someCode: Select all
rsync -av /mnt/dir/files /mnt/dir/files
thing like this:But I don't know how any body can guess at what you are doing wrongCode: Select all
rsync -av /media/sdc1/dir/ /media/sdb1/dir/
with out seeing how you have written and typed the command, I can't,
but who knows maybe somebody else can.
For a wide range of examples, and lot's of details on 'rsync'
how to copy files from and to 2 mounted devices
Code: Select all
rsync -raptgov /mnt/folder/ /mnt/folder2/folder/
Code: Select all
# rsync -av /mnt/one/ /mnt/two/
sending incremental file list
./
one.txt
sent 116 bytes received 34 bytes 300.00 bytes/sec
total size is 28 speedup is 0.19
root@debian:/# cd /mnt
root@debian:/mnt# ls
one two
root@debian:/mnt# cd two
root@debian:/mnt/two# ls
one.txt
root@debian:/mnt/two#
I am trying to do an incremental backup from a folder to another, those 2 folders and a network storage. The backup can not be in compress mode.GarryRicketson wrote:I don't know, I don't understand why you are trying to do that way.
Here is another example.You need to be root to mount anything. Also even if you are root, the folder and fileCode: Select all
# rsync -av /mnt/one/ /mnt/two/ sending incremental file list ./ one.txt sent 116 bytes received 34 bytes 300.00 bytes/sec total size is 28 speedup is 0.19 root@debian:/# cd /mnt root@debian:/mnt# ls one two root@debian:/mnt# cd two root@debian:/mnt/two# ls one.txt root@debian:/mnt/two#
must have read write permissions.
What is the "network storgage", ?and a network storage.
Code: Select all
/$ cd mnt
garry@debian:/mnt$ ls
garry@debian:/mnt$
Code: Select all
/# umount /dev/sda1
root@debian:/# mkdir /mnt/sda1
root@debian:/# mkdir /mnt/sda3
root@debian:/# mount /dev/sda3 /mnt/sda3/
root@debian:/# mount /dev/sda1 /mnt/sda1/
root@debian:/# cd /mnt
root@debian:/mnt# ls
sda1 sda3
Code: Select all
mkdir /mnt/sda1
mkdir /mnt/sda3
mount /dev/sda3 /mnt/sda3/
mount /dev/sda1 /mnt/sda1/
Code: Select all
cd /mnt
Code: Select all
garry@debian:/mnt$ ls
sda1 sda3
Code: Select all
rsync -av /mnt/sda1/FDOS /mnt/sda3/home/FDOS
Code: Select all
rsync -raptgov
These "folder" things, and you do not show any devices, or partions mounted,/mnt/folder/ /mnt/folder2/folder/
You make me laugh a lot folk. The problem seems to be solved by adding "no owner" option but I will let you know tomorrow if it worked fine when the backup finish. Thanks for trying to help.GarryRicketson wrote:There is a lot of details not clear, to start with, What are these "folders", ?
I don't have those on any of my systems, I use directories, I think, but
am not sure, when people say "folders" they are refering to directories.
Usually one does not need to even use mount, to copy files from one directory
to another,What is the "network storgage", ?and a network storage.
I think maybe if you can show what you have in your "mount" dir,...it might help
example:In this case mine is empty, nothing mounted.Code: Select all
/$ cd mnt garry@debian:/mnt$ ls garry@debian:/mnt$
==========================
First I make 2 directories, for the devices,
In this example , I have 2 devs mounted:Here is some more example,Code: Select all
/# umount /dev/sda1 root@debian:/# mkdir /mnt/sda1 root@debian:/# mkdir /mnt/sda3 root@debian:/# mount /dev/sda3 /mnt/sda3/ root@debian:/# mount /dev/sda1 /mnt/sda1/ root@debian:/# cd /mnt root@debian:/mnt# ls sda1 sda3
First I make 2 directories, for the devices,
:Code: Select all
mkdir /mnt/sda1 mkdir /mnt/sda3 mount /dev/sda3 /mnt/sda3/ mount /dev/sda1 /mnt/sda1/
Thento check and see if they are mounted properaly:Code: Select all
cd /mnt
They are.Code: Select all
garry@debian:/mnt$ ls sda1 sda3
I am going to copy the FDOS dir and all the files in it, using rsync,
so :As far as using these options goes :Code: Select all
rsync -av /mnt/sda1/FDOS /mnt/sda3/home/FDOS
I don't think it matters much, it should still work the same,...Code: Select all
rsync -raptgov
The part I am finding confusing is:These "folder" things, and you do not show any devices, or partions mounted,/mnt/folder/ /mnt/folder2/folder/
,...also you don't show wnat the output was or is, if there is any error message,
I am sure there was one.
Are you using Debian ?
Well, your welcome, we try, but it is hard when people don't like toThanks for trying to help.
Code: Select all
man rsync
--------------- edit ------------no-OPTION
You may turn off one or more implied options by prefixing the option name with "no-". Not
all options may be prefixed with a "no-": only options that are implied by other options
(e.g. --no-D, --no-perms) or have different defaults in various circumstances (e.g.
--no-whole-file, --no-blocking-io, --no-dirs). You may specify either the short or the long
option name after the "no-" prefix (e.g. --no-R is the same as --no-relative).
For example: if you want to use -a (--archive) but don’t want -o (--owner), instead of con‐
verting -a into -rlptgD, you could specify -a --no-o (or -a --no-owner).
I apologize, I have never used either one Windows, or Mac, so please forgive my ignorance.The term "folder" is immediate understood by users who have only ever used modern Mac or Windows computers, and have never been exposed to the original term "directory."
Ha! I always use the term "folders"GarryRicketson wrote:Some additional humor,.... honestly , the term "folders" does confuse me,
For me "folders" are something I keep in the file cabinate, with papers,..
So any way, I did a search, to see what I could find out, and apparently
"folders" are the same as directories,
http://goinglinux.com/articles/DirectoryVsFolder.htmlI apologize, I have never used either one Windows, or Mac, so please forgive my ignorance.The term "folder" is immediate understood by users who have only ever used modern Mac or Windows computers, and have never been exposed to the original term "directory."
Code: Select all
dir