"CP" - Copy funktioniert nicht
Posted: 2007-11-03 13:16
				
				Habe mir ein shell-script gemacht um meine Ordner automatisch via crontab sichern zu können. Leider funktioniert der Befehel cp nicht so wie ich es will. Habe schon viel ausprobiert. Die Error-message:
Mein Shellscript
Ist meine Syntax falsch? Habe schon mehrmals die Zielordner gelöscht und wiederhergestellt. Leider ohne Erfolg :/. Habt ihr eventuell eine bessere Lösung?[/code]
Danke.
			cp: target `/mnt/sdb/folderbackup/apache/r' is not a directory
cp: target `/bkp/folder/apache/r' is not a directory
cp: target `/mnt/sdb/folderbackup/teamspeak/r' is not a directory
cp: target `/bkp/folder/teamspeak/r' is not a directory
cp: cannot create regular file `/bkp/files/php.inir': No such file or directory
cp: cannot create regular file `/bkp/files/httpd.confr': No such file or directory
cp: cannot create regular file `/bkp/files/httpd_vhosts.confr': No such file or directory
Mein Shellscript
Code: Select all
cp -Rf /srv/www/htdocs/* /mnt/sdb/folderbackup/apache/
cp -Rf /srv/www/htdocs/* /bkp/folder/apache/
cp -Rf /home/teamspeak/* /mnt/sdb/folderbackup/teamspeak/
cp -Rf /home/teamspeak/* /bkp/folder/teamspeak/
cp -Rf /usr/local/Zend/etc/php.ini /bkp/files/php.ini
cp -Rf /usr/local/Zend/etc/php.ini /mnt/sdb/files/php.ini
cp -Rf /etc/apache2/httpd.conf /bkp/files/httpd.conf
cp -Rf /etc/apache2/httpd.conf /mnt/sdb/files/httpd.conf
cp -Rf /etc/apache2/extra/httpd-vhosts.conf /bkp/files/httpd_vhosts.conf
cp -Rf /etc/apache2/extra/httpd-vhosts.conf /mnt/sdb/files/httpd_vhosts.confDanke.