01/10/2018, 13:30

Làm sao để backup data sau khi tạo thành 1 text file?

Các anh(chị) cho em hỏi làm sao để backup data sau khi tạo thành 1 text file ạ? Em cần giúp gấp ^^ Em cảm ơn nhiều ạ!sao để backup data sau khi tạo thành 1 text file ạ? Em cần giúp gấp ^^ Em cảm ơn nhiều ạ!

vnPACE viết 15:35 ngày 01/10/2018

Chả rõ bạn hỏi cái gì. Nếu như backup trên window thì bạn chỉ cần copy nó sang chỗ nào đó. Còn ý bạn đang hỏi về python thì thử google search " Making a backup file in python" chẳng hạn.

Góp ý thêm về các đưa câu hỏi. Ví dụ:
Who:Chào anh chị,
Where: Trong window/python (2.7/3.6)
When: khi tạo một file text (txt bằng python)
What: Làm sao để tạo một file backup data
How: Em cần gấp, rất mong anh chị giúp đỡ. Em cảm ơn nhiều.

gist.github.com

https://gist.github.com/tompaton/1208368

backup.py
#!/usr/bin/env python
"""
backup.py

Create an archive which will be suitable for rsyncing to a remote backup.
 - will not copy data unnecessarily for common operations such as
   renaming a file or reorganising the directory structure.
   (assumes large files are generally going to be immutable, e.g. audio/video)

 - doesn't try to do anything fancy with permissions etc.
This file has been truncated. show original


stackoverflow.com
user1837575

Making a backup file + appending date time + moving file if the file exists. PYTHON

python, file, datetime, backup
asked by user1837575 on 03:13PM - 15 Sep 14

Bài liên quan
0