Implemented backup but not tested

Started implementing restore... bash substitution syntax is hell