A more proper implementation of file backup