fbpx

Låt oss avvika lite från de vanliga mediala inläggen och göra en minnesanteckning, gällande rsync och windows…

Always remount a network-drive before starting a rsync-backup, to be sure that the mounted drive is really active.

@echo off
net use x: /delete /yes
net use x: \\IPADDRESS\mount_source PASSWORD /Persistent:YES /user:USERNAME
c:\viktigt\rsync -h -av --log-file=/cygdrive/c/logs/rsync_log/rsync_media_clean.log --delete --delete-before --ignore-errors --force /cygdrive/f/ /cygdrive/z/megamedia/

By Tornevall

- Stories from Reality - Musician | Bedroom DJ | Tug of War | Photographer | DevOps Thomas blends a passion for music, photography, and technology. With a background in 1990s dance music, his journey evolved from early experiments with FastTracker 2 to becoming a DJ and competitor in tug of war. His creative output includes documenting tug of war competitions across Sweden, while also working as a systems developer focusing on WordPress and e-commerce platforms.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.