You need to use the > before the output file. It redirects stdout in what ever file you name after.
Rsync frustration of doing the simplest of things
-
- OMV 4.x
- ieronymous
-
-
You need to use the > before the output file. It redirects stdout in what ever file you name after.
Should have re-edit my post right afterwards, that already tried that and still no files been created anywhere. Based upon my current directory can you type how exactly should have written it ?
-
Any other thoughts?????
-
-
according to the man page the -s option is suppressing error messages
https://linux.die.net/man/1/md5deepI would test first without -s option and without redirection to a file on a small directory tree. If that works, go from there.
-
I would test first without -s option and without redirection to a file on a small directory tree. If that works, go from there.
Which argument redirects. dir1sums thought to be the name of file to be created
Edit: I run it without -s and the outcome wa
Code
Alles anzeigen:~# md5deep -r "/srv/dev-disk-by-label-Music Data Base/Celtic_Folk" dir1sums 09d9ba8a7afbc6cfefdf14072b911aa5 /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/03 The Sailor's Aria.mp3 c516db86655fdb7dd87e4bfb83ee539e /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/01 Raining in April.mp3 aa269501d192a7df2368713397dd6513 /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/04 Fools Ship.mp3 4c4e33093707a3566494058c0acc03ee /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/02 To Kill All Kings.mp3 ce1ca6850ffab7b6e2ec4553cad4e008 /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/05 Toys.mp3 867c5ccde299f4061a9c928ea6cb0f10 /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/06 Edward.mp3 6f73ea27cfe0bc65cef5ff0815c05376 /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/07 The Bad Luck Bird.mp3 7c3f3ec0b07b59913def05f7a0fe9940 /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/08 April Rain.mp3 e6ab46307e57c93394d8672d842bef74 /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/10 Something's Coming.mp3 6c90918ab8f1926c94f446661271d9b1 /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/11 Stella Maris.mp3 83fc3b9e9c20d47b05eb1cd27ea0fb61 /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/09 Cruel Lincoln.mp3 bce617d89ce10ec47dab98e4ec5f7a3b /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/folder.jpg a0a8bb624e340af0c319b1172bfa2b30 /root/dir1sums c5b849cbe737b2dce0b3132383ddfd62 /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/12 The Cruelest Month.mp3 d4170a55bea22ba873f7651b02b19e45 /srv/dev-disk-by-label-Music Data Base/Celtic_Folk/Sol Invictus [GER]/(2011) The Cruelest Month/13 The Blackleg Miner.mp3
I can 't find/see the /root/dir1sums....what am I suppose to do know (I understand the point is to create 2 files one for the source and the other for destination and somehow compare them. The prodecure I don't know)
Also in cli I can t navigate to /root like cd root or cd /root/ I can only nano /root/dir1sums and then i get to that file where I see the hashes of its file not a sum of all of them
Tried running the command for desdtination also in order to be created the second has file with the name dir2sums and even though it hashed the files got the mesage /root/dir2sums: No such file or directory (it is supposed to create it not find it)
-
As mentioned by @getName() you have to redirect the output with ">"
md5deep -r "/srv/dev-disk-by-label-Music Data Base/Celtic_Folk" > dir1sums
If you execute the command from you home directory (~) you should find the file dir1sums in that directory.
-
-
Once this is working read again: https://www.unixtutorial.org/u…aring-directories-in-unix
And then have md5deep read that file and compare the second directory to it:
md5deep -r -X dir1sums /dir2If there is no output that means the directories are identical. Otherwise it will display the hashes of files that are different. Thus the comparison has been accomplished.No second file. Just a second directory to compare the results from the first directory.
-
And then have md5deep read that file and compare the second directory to it:
md5deep -r -X dir1sums /dir2If there is no output that means the directories are identical. Otherwise it will display the hashes of files that are different. Thus the comparison has been accomplished.I have read the mini-instructions twice .
I tried the way it mentions the command to be typed
and it runs like both dirs have no difference. I say ok and go to the second directory and delete 2 files. Run again md5deep -r -X dir1sums /dir2 and still no output. So I dont think is very or reliable at all. -
You have to replace "dir2" with the path to your second directory.
Maybe something like
"/srv/dev-disk-by-label-backup/Celtic_Folk"Of course I am just guessing here, as I do not know the path of your second directory.
-
-
Of course I am just guessing here, as I do not know the path of your second directory.
You re right i just miss-paste . Whole procedure goes like this
Code~# md5deep -r -s "/srv/dev-disk-by-label-Music Data Base/Metal/Avant-garde_Experimental_Industrial_Post"> dir1sums ~# md5deep -r -X dir1sums /srv/dev-disk-by-label-Muz/MusicDataBase/Metal/Avant-garde_Experimental_Industrial_Post
and nothing happens changing or not files in directory 2. The dir1sums indeed is being created in /root/dir1sums and inside has hash hexabit whatever this is codes
-
md5deep -r -X dir1sums /srv/dev-disk-by-label-Muz/MusicDataBase/Metal/Avant-garde_Experimental_Industrial_Post
should this be
md5deep -r -X dir1sums "/srv/dev-disk-by-label-Muz/Music Data Base/Metal/Avant-garde_Experimental_Industrial_Post"?
Or do you have one directory with spaces and one without?Before it was "/srv/dev-disk-by-label-Music Data Base/Celtic_Folk"
Very confusing and impossible to follow.
-
Or do you have one directory with spaces and one without?
Exactly.... they differ as they are both shared (one disk in internal other is external), and one has spaces thats why the " " they other is connected by - and _
I am running it for second time this time in another directory that s why this time isnt Celtic_Folk (this directory was not inside metal genre its outside a category by it self).
But until now after running the compare command I ahve 10 mins waiting no outcome and the belwo line in cli is empty and can type things jsut not in root directory (I dont know if the command is still running)
Edit1....and it finished without messages as it should be ... lets see the second time running the compare command with 2 files missing from the destination folder if its going to find/report them (or it doesnt work this way it needs both files and the one to be altered in order to show up the difference)
Edit2....finished again and was unable to find the differences... Its like it isnt working
-
-
Well, I am not too sure what is happening there, can you cat the dir1sums please?
You can still use rsync with checksums in a second copy.
The second copy will only actually alter files, if a checksum differed.
Md5deep however should be very very reliable, so propably something else is going on. Thinking about it, I am not sure, if it posts missing files at all. Try altering one md5sum in dir1sums and let it check against the files. There are a lot of usecases, where it makes sense to only check existing files, not for the existence itself. -
You can still use rsync with checksums in a second copy.
http://www.linfo.org/cat.html too many options and arguments how do I have to type it since dir1sums is in /root/ path and i tried before to find it through cli and I couldnt Only by CloudCMD found it inside root folder.. So tell me what to type exactly
-
-
-
Maybe use tail instead, cat might be a very large output.
tail: cannot open '/root/dir1sums' for reading: No such file or directory...told you I can't understand why its so difficult to navigate to that damn file.At the same time with cloud commander you can see the file
Probably you want to see this
-
The filesystem is key sensitive. Dir1sums != dir1sums.
-
Ok, I am not sure if you are still trying to fix this, but if so some further advice.
In general keep in mind, that the file naming on modern filesystems is case sensitive (different with fat type fs).
What makes me wonder is that your Dir1sums has a 0b size, but you can open this and read lines. Is this mounted async, some tmpfs or some fuse fs (like mergefs) ?
Please provide output of the following:
cat /etc/fstab
df - hT
ls -ltra /root/Do you know how to navigate trough a fs in terminal? ls and cd are the most important commands. Also use tab when writing, this way you get some autocompletition and you dont have to write the filenames all by your own with the possibility of mistakes there.
-
-
Do you know how to navigate trough a fs in terminal? ls and cd are the most important commands. Also use tab when writing, this way you get some autocompletition and you dont have to write the filenames all by your own with the possibility of mistakes there.
Yes i know all the above thanks for mentioning.
I will edit back again and post results as soon I m home again.
So......
cat /etc/fstab
Code
Alles anzeigenroot@openmediavault:~# cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda1 during installation UUID=d7d2d854-8e20-4474-a580-ec762ece7877 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=998f9df7-3fff-4ff4-9833-0ffa4d26a91a none swap sw 0 0 tmpfs /tmp tmpfs defaults 0 0 # >>> [openmediavault] /dev/disk/by-id/ata-INTEL_SSDSCKKW128G8_BTLA817310JH128I-part3 /srv/dev-disk-by-id-ata-INTEL_SSDSCKKW128G8_BTLA817310JH128I-part3 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,discard,acl 0 2 /dev/disk/by-label/Muz /srv/dev-disk-by-label-Muz ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 /dev/disk/by-id/ata-WDC_WD40PURZ-85TTDY0_WD-WCC7K1EF7H4A-part1 /srv/dev-disk-by-id-ata-WDC_WD40PURZ-85TTDY0_WD-WCC7K1EF7H4A-part1 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 /dev/disk/by-label/New\x20Volume /srv/dev-disk-by-label-New\040Volume ntfs defaults,nofail 0 2 # <<< [openmediavault] root@openmediavault:~# # # <file system> <mount point> <type> <options> <dump> <pass> root@openmediavault:~# root@openmediavault:~# cat /etc/fstab -bash: root@openmediavault:~#: command not found root@openmediavault:~# # /etc/fstab: static file system information. root@openmediavault:~# # root@openmediavault:~# # Use 'blkid' to print the universally unique identifier for a root@openmediavault:~# # device; this may be used with UUID= as a more robust way to name devices root@openmediavault:~# # that works even if disks are added and removed. See fstab(5). root@openmediavault:~# # root@openmediavault:~# # <file system> <mount point> <type> <options> <dump> <pass> root@openmediavault:~# # / was on /dev/sda1 during installation root@openmediavault:~# UUID=d7d2d854-8e20-4474-a580-ec762ece7877 / ext4 errors=remount-ro 0 1 -bash: /: Is a directory root@openmediavault:~# # swap was on /dev/sda5 during installation root@openmediavault:~# UUID=998f9df7-3fff-4ff4-9833-0ffa4d26a91a none swap sw 0 0 -bash: none: command not found root@openmediavault:~# tmpfs /tmp tmpfs defaults 0 0 -bash: tmpfs: command not found root@openmediavault:~# # >>> [openmediavault] root@openmediavault:~# /dev/disk/by-id/ata-INTEL_SSDSCKKW128G8_BTLA817310JH128I-part3 /srv/dev-disk-by-id-ata-INTEL_SSDSCKKW128G8_BTLA817310JH128I-part3 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,discard,acl 0 2 -bash: /dev/disk/by-id/ata-INTEL_SSDSCKKW128G8_BTLA817310JH128I-part3: Permission denied root@openmediavault:~# /dev/disk/by-label/Muz /srv/dev-disk-by-label-Muz ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 -bash: /dev/disk/by-label/Muz: Permission denied root@openmediavault:~# /dev/disk/by-id/ata-WDC_WD40PURZ-85TTDY0_WD-WCC7K1EF7H4A-part1 /srv/dev-disk-by-id-ata-WDC_WD40PURZ-85TTDY0_WD-WCC7K1EF7H4A-part1 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 -bash: /dev/disk/by-id/ata-WDC_WD40PURZ-85TTDY0_WD-WCC7K1EF7H4A-part1: Permission denied root@openmediavault:~# /dev/disk/by-label/New\x20Volume /srv/dev-disk-by-label-New\040Volume ntfs defaults,nofail 0 2 -bash: /dev/disk/by-label/Newx20Volume: No such file or directory root@openmediavault:~# # <<< [openmediavault] root@openmediavault:~# root@openmediavault:~# root@openmediavault:~# cat /etc/fstab -bash: root@openmediavault:~#: command not found root@openmediavault:~# # /etc/fstab: static file system information. root@openmediavault:~# # root@openmediavault:~# # Use 'blkid' to print the universally unique identifier for a root@openmediavault:~# # device; this may be used with UUID= as a more robust way to name devices root@openmediavault:~# # that works even if disks are added and removed. See fstab(5). root@openmediavault:~# # root@openmediavault:~# # <file system> <mount point> <type> <options> <dump> <pass> root@openmediavault:~# # / was on /dev/sda1 during installation root@openmediavault:~# UUID=d7d2d854-8e20-4474-a580-ec762ece7877 / ext4 errors=remount-ro 0 1 -bash: /: Is a directory root@openmediavault:~# # swap was on /dev/sda5 during installation root@openmediavault:~# UUID=998f9df7-3fff-4ff4-9833-0ffa4d26a91a none swap sw 0 0 -bash: none: command not found root@openmediavault:~# tmpfs /tmp tmpfs defaults 0 0 -bash: tmpfs: command not found root@openmediavault:~# # >>> [openmediavault] root@openmediavault:~# /dev/disk/by-id/ata-INTEL_SSDSCKKW128G8_BTLA817310JH128I-part3 /srv/dev-disk-by-id-ata-INTEL_SSDSCKKW128G8_BTLA817310JH128I-part3 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,discard,acl 0 2 -bash: /dev/disk/by-id/ata-INTEL_SSDSCKKW128G8_BTLA817310JH128I-part3: Permission denied root@openmediavault:~# /dev/disk/by-label/Muz /srv/dev-disk-by-label-Muz ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 -bash: /dev/disk/by-label/Muz: Permission denied root@openmediavault:~# /dev/disk/by-id/ata-WDC_WD40PURZ-85TTDY0_WD-WCC7K1EF7H4A-part1 /srv/dev-disk-by-id-ata-WDC_WD40PURZ-85TTDY0_WD-WCC7K1EF7H4A-part1 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 -bash: /dev/disk/by-id/ata-WDC_WD40PURZ-85TTDY0_WD-WCC7K1EF7H4A-part1: Permission denied root@openmediavault:~# /dev/disk/by-label/New\x20Volume /srv/dev-disk-by-label-New\040Volume ntfs defaults,nofail 0 2 -bash: /dev/disk/by-label/Newx20Volume: No such file or directory
ls -ltra /root/Code
Alles anzeigentotal 56 -rw-r--r-- 1 root root 570 Jan 31 2010 .bashrc -rw-r--r-- 1 root root 148 Aug 17 2015 .profile drwx------ 2 root root 4096 Mar 31 07:43 .ssh -rw-r--r-- 1 root root 134 Mar 31 07:43 .inputrc drwxr-xr-x 2 root root 4096 Mar 31 08:32 .nano -rw-r--r-- 1 root root 180 Apr 7 00:23 .wget-hsts drwxr-xr-x 24 root root 4096 Apr 26 01:36 .. -rw-r--r-- 1 root root 2111 Apr 27 19:59 Dir1sums -rw------- 1 root root 17577 Apr 30 01:28 .bash_history drwx------ 4 root root 4096 Apr 30 01:28 .
df - hT
df: -: No such file or directory
df: hT: No such file or directory -
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!