Backup script crashing server and using most of RAM


Recommended Posts

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 by coblck
Link to comment

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

  • Thanks 1
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.