Not able to restore my site from gdrive errorr Failed to copy: directory not found

What is the problem you are having with rclone?

rclone copy gdrive:basezap”$NODE”nodebackups/$SERVER_HOSTNAME/$DATE /root -P
when i m running this command showing error
2022-05-11 14:40:02 ERROR : Google drive root 'basezap”trying”nodebackups/node.kuldeepg.tk/2022/05/11': error reading source root directory: directory not found
2022-05-11 14:40:02 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2022-05-11 14:40:02 ERROR : Google drive root 'basezap”trying”nodebackups/node.kuldeepg.tk/2022/05/11': error reading source root directory: directory not found
2022-05-11 14:40:02 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2022-05-11 14:40:02 ERROR : Google drive root 'basezap”trying”nodebackups/node.kuldeepg.tk/2022/05/11': error reading source root directory: directory not found
2022-05-11 14:40:02 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.7s
2022/05/11 14:40:02 Failed to copy: directory not found

Run the command 'rclone version' and share the full output of the command.

v1.58.1

Which cloud storage system are you using? (eg Google Drive)

gdrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

2022-05-11 14:40:02 ERROR : Google drive root 'basezap”trying”nodebackups/node.kuldeepg.tk/2022/05/11': error reading source root directory: directory not found
2022-05-11 14:40:02 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2022-05-11 14:40:02 ERROR : Google drive root 'basezap”trying”nodebackups/node.kuldeepg.tk/2022/05/11': error reading source root directory: directory not found
2022-05-11 14:40:02 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2022-05-11 14:40:02 ERROR : Google drive root 'basezap”trying”nodebackups/node.kuldeepg.tk/2022/05/11': error reading source root directory: directory not found
2022-05-11 14:40:02 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.7s
2022/05/11 14:40:02 Failed to copy: directory not found

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

root@node:~#  rclone copy gdrive:basezap”$NODE”nodebackups/$SERVER_HOSTNAME/$DATE /root -P -vv
2022/05/11 14:47:22 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone" "copy" "gdrive:basezap”trying”nodebackups/node.kuldeepg.tk/2022-05-11" "/root" "-P" "-vv"]
2022/05/11 14:47:22 DEBUG : Creating backend with remote "gdrive:basezap”trying”nodebackups/node.kuldeepg.tk/2022-05-11"
2022/05/11 14:47:22 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/05/11 14:47:22 DEBUG : Google drive root 'basezap”trying”nodebackups/node.kuldeepg.tk/2022-05-11': 'root_folder_id = 0ANnyZ3zszCeFUk9PVA' - save this in the config to speed up startup
2022/05/11 14:47:23 DEBUG : Creating backend with remote "/root"
2022-05-11 14:47:23 ERROR : Google drive root 'basezap”trying”nodebackups/node.kuldeepg.tk/2022-05-11': error reading source root directory: directory not found
2022-05-11 14:47:23 DEBUG : Local file system at /root: Waiting for checks to finish
2022-05-11 14:47:23 DEBUG : Local file system at /root: Waiting for transfers to finish
2022-05-11 14:47:23 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2022-05-11 14:47:23 ERROR : Google drive root 'basezap”trying”nodebackups/node.kuldeepg.tk/2022-05-11': error reading source root directory: directory not found
2022-05-11 14:47:23 DEBUG : Local file system at /root: Waiting for checks to finish
2022-05-11 14:47:23 DEBUG : Local file system at /root: Waiting for transfers to finish
2022-05-11 14:47:23 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2022-05-11 14:47:23 ERROR : Google drive root 'basezap”trying”nodebackups/node.kuldeepg.tk/2022-05-11': error reading source root directory: directory not found
2022-05-11 14:47:23 DEBUG : Local file system at /root: Waiting for checks to finish
2022-05-11 14:47:23 DEBUG : Local file system at /root: Waiting for transfers to finish
2022-05-11 14:47:23 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.6s
2022/05/11 14:47:23 INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.6s

2022/05/11 14:47:23 DEBUG : 5 go routines active
2022/05/11 14:47:23 Failed to copy: directory not found

Start at the top and work your way down.

The error is saying the directory isn't found so you are giving a path that does not exist.

rclone lsd gdrive:

and work your way down to figure out where the error is by adding on to the path.

root@node:~/gdrive-backup-wordops# rclone lsd gdrive:
-1 2022-01-15 17:07:42 -1 backup
-1 2022-05-10 16:38:33 -1 basezapexamplenodebackups
-1 2022-02-07 12:41:33 -1 basezapnodebackups
-1 2022-01-25 18:48:20 -1 basezapnodenodebackups
-1 2022-05-11 10:46:45 -1 basezaptestnodebackups
-1 2022-05-11 10:48:50 -1 basezaptryingnodebackups
-1 2022-01-15 18:57:02 -1 bt_backup
-1 2022-01-21 12:58:57 -1 newfile
-1 2022-01-21 10:05:59 -1 rclone-test-folder
root@node:~/gdrive-backup-wordops#
hii sir path is exists see the output above and help me to out this problem

Start walking down the path and see where the issue is.

Add the next directory level and keep going down.

sir now able to find how to fix this please give me some clue by that I can fix this.

You have variables up there that are most likely mapping to nothing / the wrong thing. You'd have to fix that or set them to the right path you have listed.

that doesn't exist in your rclone lsd output here:

thank you so much, sir now its working

rclone copy gdrive:basezap”$NODE”nodebackups/$SERVER_HOSTNAME/$DATE /root -P

i want to ask one more thing what is the role of this -P in this line

That is:

  -P, --progress                             Show progress during transfer

All the flags are here:

Global Flags (rclone.org)

ok sir thanks a lot