created a function to backup the system dir.