copy files, wait 30min, hard reboot = data loss


Recommended Posts

  • Replies 154
  • Created
  • Last Reply

Top Posters In This Topic

For those following this thread that want to insure your filesystems are synced at least once per day.

 

You can issue the following commands to install it to the daily cron folder.

This has the side effect of spinning all your disks up once a day.

 

echo "/bin/sync" > /etc/cron.daily/sync.sh 

chmod 755 /etc/cron.daily/sync.sh

 

You should see the following.

ls -l /etc/cron.daily/sync.sh                 

-rwxr-xr-x 1 root root 10 2013-06-26 22:45 /etc/cron.daily/sync.sh

 

cat /etc/cron.daily/sync.sh

/bin/sync

 

Then you can run it once to be sure.

/etc/cron.daily/sync.sh

Link to comment
Guest
This topic is now closed to further replies.