
root mkdir /var/spool/samba root chown nobody.nobody /var/spool/samba root chmod. Rsync does not create directories which are specified in the destination path. Also check the permissions to /mnt on the client and be sure that koen has read permissions to whatever it is you're trying to sync. The correct way to do this (though it does change the permissions so you can't just restore from backup if these were important) is to add the following to your rsynccommand. The mistake you make is that you refer to a directory in the destination which does not exist yet. In your command you're using '/home/backup' but when you do file listings to show permissions you show '/home/koen/backup/'. On the second publish, the dir will already exists in shared folder, so, you will need to move or delete it. Accessing the Samba Sources via rsync and ftp Verifying Sambas PGP. But, if you run this command: Code: rsync -a /s/1 /d/.
#Shipit rsync mkdir plus
So, I agree with the idea that rm -R is too much destructive/dangerous, but i don't agree with your actual solution about copying folder to shared folder ( plus : this is only usefull on the first deployment. Personally, i don't see any problem about rm -R except if the user performed a misconfiguration, but i don't see exaclty how it could remove something since that everything that can be removed there comes from your git repository, so you wont lose any sensitive data in any case, only some datas that you have in your repository. you need to create /foo/bar on the Boot2Docker VM: boot2docker ssh mkdir -p. the target folder in shared folder will already exist, so the directory will not be copied to the shared folder because something there already exists, so the last option i see is to move the folder in the tmp folder, and to backup/move them somewhere instead of deleting. With rsync, build times in a Docker container are on par with running the. Let's assume that a user already prepared his shared folder before publishing the first time. I agree with that using rm -R is a bit destructive, but in fact, in some cases, we'll need it.
