Hello edwardr,
you can do it with this exemple flow.
Don't forget first to define the variable "Backup-user-name" with a text node for example.
And launch the backup with the inject
[{"id":"13c154f6.33f9db","type":"function","z":"aad530d6.afa61","name":"Read filenames","func":"var nom = global.get(\"Backup-nom-utilisateur\");\nvar path = ('/home/pi/Pictures/');\nvar fs = (global.get('fse'));\n\nfs.readdirSync(path).forEach(file => {\n//node.send({localFilename: \"/home/pi/Pictures/\"+(file), filename: 'Dir/subdir/'+(file)});\nvar file_dest = \"Clients/\" + nom +\"/\" + file\nnode.send({localFilename: \"/home/pi/Pictures/\"+(file), filename: (file_dest)});\n});\nreturn null;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":380,"y":1060,"wires":[["b2fd551.7986da8"]]},{"id":"b2fd551.7986da8","type":"dropbox out","z":"aad530d6.afa61","dropbox":"","filename":"","localFilename":"","name":"","x":560,"y":1060,"wires":[]},{"id":"dbb65ca8.f0a5e","type":"inject","z":"aad530d6.afa61","name":"backup","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":210,"y":1060,"wires":[["13c154f6.33f9db"]]}]
And in Dropbox, it should have this kind of result. The final directory has been defined as "docker" under /Clients directory.
This is what was to be saved
