LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-22-2020, 06:39 PM   #61
alex4buba
Member
 
Registered: Jul 2020
Posts: 624

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by scasey View Post
Any clues in the verbose output?
With no trailing / on the source, there should be a alexfolders directory in the sun directory
Incremental?
I added the alexfolders directory inside the sun directory, the verbose feedback was the following

alex@alex-nuc8i7hnk:~$ rsync -av /home/alex/alexfolders /media/New-SD-512/sun
sending incremental file list

sent 614,817 bytes received 3,511 bytes 1,236,656.00 bytes/sec

It now doesn't do anything at all

Thanks
 
Old 08-22-2020, 06:41 PM   #62
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
The trailing slash on the source matters. As scasey noted, if you did not have the trailing slash, you get a subdirectory named alexfolders in the sun directory. If you use the slash, the files go into the sun/ directory. Have you actually looked in the sun directory to see if it is actually empty? Is there a subdirectory? Perhaps names alexfolders? I don't think you understand the consequences of having or not having the trailing slash. If you omit it, you get a subdirectory, not just the files.
 
Old 08-22-2020, 06:43 PM   #63
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by alex4buba View Post
No idea how do I change ownership?
I showed you exactly how to do it in the post which mentioned it.
 
Old 08-22-2020, 06:49 PM   #64
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
There's good documentation about verbosity and debugging rsync in the man page.
I think you need to set some flags for debugging to see what's actually happening.
I don't understand why you're getting incremental runs if the destination is empty.

my destination directories are 40GB. The initial run took a couple hours, as I recall (I'm pulling from a remote machine, so there's a transfer bottleneck). The daily runs take about 7 minutes, as only changed files are copied each day.

How much data is in /home/alex/alexfolders?
Code:
du -hs /home/alex/alexfolders

Last edited by scasey; 08-22-2020 at 06:56 PM.
 
Old 08-22-2020, 06:50 PM   #65
alex4buba
Member
 
Registered: Jul 2020
Posts: 624

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sgosnell View Post
The trailing slash on the source matters. As scasey noted, if you did not have the trailing slash, you get a subdirectory named alexfolders in the sun directory. If you use the slash, the files go into the sun/ directory. Have you actually looked in the sun directory to see if it is actually empty? Is there a subdirectory? Perhaps names alexfolders? I don't think you understand the consequences of having or not having the trailing slash. If you omit it, you get a subdirectory, not just the files.
Yes, I looked in the sun directory following the previous suggestio I added manually the alexfolders.
Yes I do understand the job of the / at the source, that's why I didn't create the alexfolders at the start.

The Alex folders has inside it only folders, with some 32gb of files.

Now, the command line does nothing, it thinks that the backup was done already, but in fact, I have no backup at all

So, where do I go from here?
I am about to go to the hardware store to buy myself a rope...

Thanks for your time
Alex
 
Old 08-22-2020, 07:26 PM   #66
alex4buba
Member
 
Registered: Jul 2020
Posts: 624

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
There's good documentation about verbosity and debugging rsync in the man page.
I think you need to set some flags for debugging to see what's actually happening.
I don't understand why you're getting incremental runs if the destination is empty.

my destination directories are 40GB. The initial run took a couple hours, as I recall (I'm pulling from a remote machine, so there's a transfer bottleneck). The daily runs take about 7 minutes, as only changed files are copied each day.

How much data is in /home/alex/alexfolders?
Code:
du -hs /home/alex/alexfolders
alex@alex-nuc8i7hnk:~$ du -hs /home/alex/alexfolders
35G /home/alex/alexfolders

I just did another run, this time into the sat (Saturday) folder which I created before executing it, the end result looks wrong: It sent all the 35GB, but received only a small fraction of it...

sent 36,998,650,791 bytes received 400,349 bytes 130,970,092.53 bytes/sec
total size is 36,988,192,756 speedup is 1.00
 
Old 08-22-2020, 07:33 PM   #67
alex4buba
Member
 
Registered: Jul 2020
Posts: 624

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sgosnell View Post
I showed you exactly how to do it in the post which mentioned it.
OK, I changed the ownership of the target to root, it was to me alex,
Didn't change anything, it still wants me to issue the command with sudo

But, even then, the backup runs for a few minutes and doesn't copy anything

So, why when I execute this :
rsync -r /home/alex/Pictures/ /media/alex/New-SD-512/DTPictures - DTPictures Directory was made B4 command

it works, but this : rsync -r /home/alex/alexfolders /media/New-SD-512/sat
Does nothing?

It must be something so basic, that nobody thinks they need to tell me...

Thanks again
Alex
 
Old 08-22-2020, 07:45 PM   #68
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
What do you get when you run
Code:
du -h /media/New-SD-512/sat
I did not tell you to change the owner of the SD card to root, because root was already the owner. I told you to change it to you, and if you use the exact syntax I posted, you would do that. It's just a matter of copy and paste. And reading with comprehension. Which can be difficult. I know, I'm old and slow too.
 
Old 08-22-2020, 08:08 PM   #69
alex4buba
Member
 
Registered: Jul 2020
Posts: 624

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sgosnell View Post
What do you get when you run
Code:
du -h /media/New-SD-512/sat
I did not tell you to change the owner of the SD card to root, because root was already the owner. I told you to change it to you, and if you use the exact syntax I posted, you would do that. It's just a matter of copy and paste. And reading with comprehension. Which can be difficult. I know, I'm old and slow too.
Before answering, I just followed the rsync help to the website, it shows version 3.2.3 released early August, but my installed version is older : 3.1.3. I tried removing and reinstalling it, but it reinstalls the same older one.

What I see is the following, just the top part, it has hundreds of lines.
The ownership was to me, then I chnaged it to root. I tried to find the post with your instructions, can't find it will appreciate if you can send it again. Should it be me (alex) or root so that I don't need to enter sudo...

The following lines show that the copy wa sexecuted, but the folder when looking with file manager is emapty, so what do you make of this?

alex@alex-nuc8i7hnk:~$ du -h /media/New-SD-512/sat
54M /media/New-SD-512/sat/alexfolders/A-NMAA_New/Newsletters
4.0K /media/New-SD-512/sat/alexfolders/A-NMAA_New/mypictures
1.3M /media/New-SD-512/sat/alexfolders/A-NMAA_New/2019_11_famday
40M /media/New-SD-512/sat/alexfolders/A-NMAA_New/Members
619M /media/New-SD-512/sat/alexfolders/A-NMAA_New/2017_03_25_ScaleDay/Videoclips
1.9M /media/New-SD-512/sat/alexfolders/A-NMAA_New/2017_03_25_ScaleDay/Resized
677M /media/New-SD-512/sat/alexfolders/A-NMAA_New/2017_03_25_ScaleDay
12M /media/New-SD-512/sat/alexfolders/A-NMAA_New/2017_03_12_GiantScaleDay
4.0K /media/New-SD-512/sat/alexfolders/A-NMAA_New/Backup
56K /media/New-SD-512/sat/alexfolders/A-NMAA_New/csv-to-html-table-master/images
156K /media/New-SD-512/sat/alexfolders/A-NMAA_New/csv-to-html-table-master/fonts
 
Old 08-22-2020, 08:20 PM   #70
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Code:
sudo chown -r alex:alex /media/New-SD-512

Last edited by sgosnell; 08-22-2020 at 08:34 PM.
 
Old 08-22-2020, 08:30 PM   #71
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
What I make of it is that you omitted the trailing slash on the input file, so your backup is nested further down in the folder hierarchy. You have a subdirectory named alexfolders under sat, and further subfolders under that. The backup is clearly in place, but you have to go further down to find the files and other subfolders. BTW, I tend to use folder and directory interchangeably, and they both mean the same thing. Folders is, AFAIK, a newer term for directories. But anyway, rsync is doing its job exactly the way you told it to. What you told it may not be what you meant, but computers cannot read your mind. :-D

The newest, shiniest version of rsync, and any other package, may not be in the repositories yet. Be patient. I promise you there will be no significant change in functionality. That would be completely unacceptable to the Linux community, because so much depends on its stability. The version you have is more than adequate.
 
1 members found this post helpful.
Old 08-22-2020, 08:32 PM   #72
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by alex4buba View Post
Code:
alex@alex-nuc8i7hnk:~$ du -h /media/New-SD-512/sat
54M	/media/New-SD-512/sat/alexfolders/A-NMAA_New/Newsletters
4.0K	/media/New-SD-512/sat/alexfolders/A-NMAA_New/mypictures
1.3M	/media/New-SD-512/sat/alexfolders/A-NMAA_New/2019_11_famday
40M	/media/New-SD-512/sat/alexfolders/A-NMAA_New/Members
619M	/media/New-SD-512/sat/alexfolders/A-NMAA_New/2017_03_25_ScaleDay/Videoclips
1.9M	/media/New-SD-512/sat/alexfolders/A-NMAA_New/2017_03_25_ScaleDay/Resized
677M	/media/New-SD-512/sat/alexfolders/A-NMAA_New/2017_03_25_ScaleDay
12M	/media/New-SD-512/sat/alexfolders/A-NMAA_New/2017_03_12_GiantScaleDay
4.0K	/media/New-SD-512/sat/alexfolders/A-NMAA_New/Backup
56K	/media/New-SD-512/sat/alexfolders/A-NMAA_New/csv-to-html-table-master/images
156K	/media/New-SD-512/sat/alexfolders/A-NMAA_New/csv-to-html-table-master/fonts
Code:

PLEASE use code tags when posting output. It's very difficult to read without them. Either use the # button on the advanced editor or type them yourself. Again. check the link in my signature.
 
Old 08-22-2020, 08:47 PM   #73
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by sgosnell View Post
What I make of it is that you omitted the trailing slash on the input file, so your backup is nested further down in the folder hierarchy. You have a subdirectory named alexfolders under sat, and further subfolders under that. The backup is clearly in place, but you have to go further down to find the files and other subfolders. BTW, I tend to use folder and directory interchangeably, and they both mean the same thing. Folders is, AFAIK, a newer term for directories. But anyway, rsync is doing its job exactly the way you told it to. What you told it may not be what you meant, but computers cannot read your mind. :-D
I agree completely. That's why only incrementals on subsequent runs. Good call on the du on the target!

alex4buba: I'm wondering why you thought the target directory was empty. Perhaps because it's owned by root, and you're using root to do the rsync, so the top-level files, at least are owned by root and you can't see them from your GUI file manager.

Change the ownership of the target to alex (man chown) or #55. Do another run without sudo to see that it works. Then your cron entries should work.

Good luck.
 
Old 08-22-2020, 08:56 PM   #74
alex4buba
Member
 
Registered: Jul 2020
Posts: 624

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sgosnell View Post
Code:
sudo chown -r alex:alex /media/New-SD-512
When in terminal and I enter that command, I get this:

alex@alex-nuc8i7hnk:~$ sudo chown -r alex:alex /media/New-SD-512
chown: invalid option -- 'r'
 
Old 08-22-2020, 09:02 PM   #75
alex4buba
Member
 
Registered: Jul 2020
Posts: 624

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
[/CODE]
PLEASE use code tags when posting output. It's very difficult to read without them. Either use the # button on the advanced editor or type them yourself. Again. check the link in my signature.
Code:
alex@alex-nuc8i7hnk:/media/alex/New-SD-512/sat$ ls -l
total 0

As you can see, this in terminal mode, not in GUI

So, where are the backup files? What do I need to do to see them?

Thanks

Last edited by alex4buba; 08-22-2020 at 09:05 PM.
 
  


Reply

Tags
backup, restore



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
Newbie trying to write a simple backup script to backup a single folder Nd for school stryker759a Linux - Newbie 2 09-16-2009 08:52 AM
Permission problem with importing evolution mail from the old .evolution folder oskar Linux - Software 4 05-23-2008 08:28 PM
New installation: restoring the old home folder? Backup advices bruno321 Linux - General 4 11-18-2007 08:55 AM
weird error restoring Evolution melinda_sayang Linux - Software 4 11-08-2005 01:18 AM

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

All times are GMT -5. The time now is 04:30 AM.

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