coblck Posted March 9, 2021 Share Posted March 9, 2021 (edited) Hi quick question i wrote a script to enable me to start backing up my most valuable data but ran into a few problems, #!/bin/sh rsync -av --delete /mnt/user/Pictures /mnt/disks/Backups_Ext Backup when well but when finished has used 75% of my memory and it pegged my cpu at 100% for about 3mins and when i tried to start my VM it wouldnt as not enough memory , also made my system very unstable to the point unusable so had reboot. Thankfully everything back to normal but was wondering if can i manually flush/empty the memory? Edited March 9, 2021 by coblck Quote Link to comment
Cpt. Chaz Posted March 10, 2021 Share Posted March 10, 2021 Hi @coblck, can you advise on how much ram your system running rsync has? also, what is the file format for the external hd? sometimes using the -a tag for rsync between different file formats can cause problems. so i'm wondering if using -r and -t, and maybe some other options would help solve the problem of using -a. there could be a few different things to try here 1 Quote Link to comment
coblck Posted March 10, 2021 Author Share Posted March 10, 2021 Hi @Cpt. Chaz yeah my system is using 16gb of Ram, also the ext HD is formatted with NTFS Quote Link to comment
Cpt. Chaz Posted March 10, 2021 Share Posted March 10, 2021 Good deal. The -delete option uses extra memory. Let’s eliminate the variables one at a time. Just for the sake of troubleshooting, remove that option and try running again. Also, add -P and -h. Those will make the output a little easier to read for you. 1 Quote Link to comment
coblck Posted March 10, 2021 Author Share Posted March 10, 2021 OK will try later when home night-shift in (UK). The folder I was trying to backup does contain quite a few small files. Will try what you suggest. Thanks Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.