GUI GNOME File Manager and PCManFM don't see my backup files - Ubunto 20.04
1 Attachment(s)
As one of my important stapes into the Linux world is - Backup, I finnaly managed to setup rsync / crontab to do the job.
This was with intensive help from several forum members here, I am thanking them again. The problem however is that - I can see the backup files through a Terminal command, but in eiker of the above file managers, the backup folders in the external "Target" SD device show as empty. Code:
alex@alex-nuc8i7hnk:~$ ls -l /media/New-SD-512/sun/alexfolders Thank you Alex |
One possible explanation:
The folders named A-something are actually stored on the root filesystem. When you ran the ls command you saw the content of the root filesystem. You then inserted the external storage medium, which is empty. Mounting the New-SD-512 filesystem hides the folders under /media/New-SD-512. You then view the empty New-SD-512 with the file explorers. |
Quote:
I placed those sub folders inside alexfolders for the only purpose so that my cron job has only one command to execute each day. Was this wrong to do? In the target external SD storage, the alexfolders are to be created by the cron job. I have manually created on that target SD the folders sun,mon etc... Please tell me how to do it better? Thnaks Alex |
I am confused now. What is /media/New-SD-512/sun/alexfolders? Does it contain the files that you want to back up, or is it the backup? I understood it's the latter, but what you are saying now makes me wonder.
Also, what is New-SD-512? I understood it's an external device, like an SD card. Correct? When you ran the ls command, was that device inserted? The file explorer screenshot shows that the device is inserted. |
Quote:
The New-SD-512 is a 512GB SD card inserted into an SD slot in my Intel-Nuc desktop The line : /media/New-SD-512/sun/alexfolders says that in the root of the above SD there is a day folder - sun,mon,tue etc... Inside each day folder, there is a single sub-folder call "alexfolders" On my actual machine, in the HOME folder, I have a folder called "alexfolders" and inside it are all the folders I created. Here are all the folders and files that I want to backup, yes. I just put them all under ONE top folder, so that I can execute it with only one command per day. Yes, the SD card is stuck in there permanently, otherwise my backup action will have no "Target". Now, I hope you get the picture, maybe you can help me figure out, why am I able to have access to the backup files / folders through command line, but NOT through File Manager GUI And one last thing, access rights on that New-SD-512 are all set to 777 from the root down Cheers Alex |
Code:
drwxr-xr-x I don't have an explanation. Can you reproduce the problem? I.e. run the ls command and use the file explorer at the same time, with the two different outcomes? EDIT: Also, when you use the file explorer to create an object on the SD-Card, is that reflected in the ls output? EDIT2: And run the df command. I have the suspicion that the ls command lists a different directory than the file explorer. |
Quote:
The problem is being reproduced consistantly since Saturday when I ran the first backup. The initial one of course took longer, and the follow ups, Sunday and I suspect today (in about 20 minutes) when it runs again - I can see the modified files in Terminal mode, but for the same folders on the SD card, those folders show as EMPTY. Now, I checked it again in Command line (following your prompt here, I get the following: Code:
alex@alex-nuc8i7hnk:~$ ls -l /media/alex/New-SD-512/sun Code:
alex@alex-nuc8i7hnk:~$ ls -l /media/alex/New-SD-512/sun/alexfolders Yes, in the Source folder, I made changes today, copied them with the GUI File manager into the sat folder, they show up in the target through the GUI, The command line shows this : Code:
alex@alex-nuc8i7hnk:~$ ls -l /media/alex/New-SD-512/sat Whta do you make of this? Thanks again |
I guess that your backups are not on the SD card, but the root filesystem. To check this, unmount the SD card and look into /media/alex/New-SD-512/<days of the week>.
|
Quote:
Code:
alex@alex-nuc8i7hnk:~$ ls -l /media/alex/New-SD-512/sat So, any other suggestion? Cheers Alex |
How about the other weekdays?
|
Quote:
If I run the following command in Terminal, it now does NOTHING. Is there a log I can check to see what did it do, or didn't and some errors? Code:
rsync -aR /home/alex/alexfolders /media/New-SD-512/mon/ Alex |
Quote:
Quote:
|
Code:
rsync -aR /home/alex/alexfolders /media/New-SD-512/mon/ Since you are using the -R option and if the command did something your files will be /media/New-SD-512/mon/home/alex/alexfolders. What is also interesting from your first post is that some of the files are from the future i.e Sep and Oct 2020... The System Volume Information' indicates you looked at the card from Windows. |
I suspect the directory structure of the SD card is a mess by now. Try doing a directory listing of the entire card.
Code:
ls -a /media/New-SD-512 |
Quote:
It was staring me in the face... Code:
The correct code should have been this: My final question, is my rsync command the correct one, or should I have -rR instead What I am happy about the setup, is that if/when I add a folder inside alexfolders, I will NOT need to adjust the cron job Thanks again Alex |
All times are GMT -5. The time now is 12:25 PM. |